Skip to content

Instantly share code, notes, and snippets.

@yupadhyay
Created February 7, 2016 19:18
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save yupadhyay/a7348e7fbf98590f176c to your computer and use it in GitHub Desktop.
Save yupadhyay/a7348e7fbf98590f176c to your computer and use it in GitHub Desktop.
Include Clientlibs in Sightly
<head data-sly-use.clientLib="${'/libs/granite/sightly/templates/clientlib.html'}">
<!--/* for css+js */-->
<meta data-sly-call="${clientLib.all @ categories='your.clientlib'}" data-sly-unwrap></meta>
<!--/* only js */-->
<meta data-sly-call="${clientLib.js @ categories='your.clientlib'}" data-sly-unwrap></meta>
<!--/* only css */-->
<meta data-sly-call="${clientLib.css @ categories='your.clientlib'}" data-sly-unwrap></meta>
</head>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment