2

Is there a helper tag to output a complete stylesheet link.

I used helper tag for lack of knowledge. Helper tag is used in Statamic.

In Statamic {{ theme:css src="style" tag="true" }} outputs

<link rel="stylesheet" href="/site/themes/redwood/css/style.css" />

I've seen <link rel="stylesheet" type="text/css" href="{{ siteUrl }}assets/css/happylager.css"> in Happy Lager's template but I'm looking for something shorter.

2

In Craft there's {% includeJsFile %} and {% includeCssFile %} which get injected on the getHeadHtml() and getFootHtml() functions on your templates.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.