0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

出力系 meta,css,script

Posted at

require_css

headタグ内に出力される
= standard_header_includesに出力される

{% require_css %}
    <style>
        body {
            color: red;
        }
    </style>
{% end_require_css %}

require_js

body閉じタグ上に出力される
= standard_footer_includesに出力される

position="footer"
body閉じタグ上に出力される
= standard_footer_includesに出力される

違いが不明。順番を指定するための属性だろうか。

{% require_js position="footer" %}
    <script>
        console.log("running");
    </script>
{% end_require_js %}

require_head

headタグ内に出力される
= standard_header_includesに出力される

{% require_head %}
  <meta name="third-party-app-verification-id" content="123456">
  <link rel="prefetch" href="http://example.com/large-script.js">
{% end_require_head %}
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?