Created
March 7, 2015 01:32
-
-
Save egardner/c15a864c6c1ecc7c3477 to your computer and use it in GitHub Desktop.
Jekyll JS template for ember & pretender
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
--- | |
var chapters = { | |
{% for chapter in site.chapters %} | |
{{chapter.id}}: { | |
id: {{chapter.id}}, | |
title: "{{chapter.title}}", | |
content: "{{ chapter.content | strip_newlines | escape }}" | |
}{% if forloop.last %}{% else %},{% endif %} | |
{% endfor %} | |
}; | |
module.exports = chapters |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment