wvuweb / hammer

A tool for CleanSlate theme development
https://cleanslate.wvu.edu
4 stars 2 forks source link

Add support for <r:stylesheet_url /> #51

Closed jasonmarkle closed 7 years ago

jasonmarkle commented 7 years ago

<r:stylesheet_url /> writes out the path of the stylesheet with the attribute name defining the file.

Typically we use <r:include_stylesheet> which writes out the full tag. <r:stylesheet_url /> will only write out the direct path to the stylesheet. This is useful for sites that use things like loadCSS (https://www.npmjs.com/package/fg-loadcss) to prevent render blocking of the stylesheet and increase perceived and actual page load time.