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 %}