Skip to content

Instantly share code, notes, and snippets.

@ckluis
Last active August 29, 2015 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ckluis/705866cde22a1d164c87 to your computer and use it in GitHub Desktop.
Save ckluis/705866cde22a1d164c87 to your computer and use it in GitHub Desktop.
folder based asset inclusion example
//<logic>
// var path = src assigned in link
// if path folder contains a file with .css load .css file
// else if path folder contains a file with .scss load .scss file and include scssCompiler.js
// else path folder contains a file with .less include and include lessCompiler.js
//</logic>
<link src="assets/style/"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment