Skip to content

Instantly share code, notes, and snippets.

@jonschlinkert
Created May 23, 2014 11:50
Show Gist options
  • Save jonschlinkert/797a2393a0e77356d156 to your computer and use it in GitHub Desktop.
Save jonschlinkert/797a2393a0e77356d156 to your computer and use it in GitHub Desktop.

In the assemble options, define the path to your assets directory:

options: {
  assets: 'dist/assets'
}

Now, in your templates you can use the variable like this:

{{assets}}

For example:

<link href="{{assets}}/theme.css" rel="stylesheet" type="text/css">

Renders to:

<link href="dist/assets/theme.css" rel="stylesheet" type="text/css">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment