Skip to content

Instantly share code, notes, and snippets.

@dencold
Created February 4, 2014 02:21
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 dencold/8796395 to your computer and use it in GitHub Desktop.
Save dencold/8796395 to your computer and use it in GitHub Desktop.
harp partial
for article, slug in public.thoughts._data
a(href="/thoughts/#{ slug }")
h2= article.title
// this works!
!= partial("thoughts/new-years-blog")
// this does not...
!= partial("thoughts/#{ slug }")
// note that the href from above gets pulled in just fine.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment