Skip to content

Instantly share code, notes, and snippets.

@egardner
Created March 7, 2015 01:32
Show Gist options
  • Save egardner/c15a864c6c1ecc7c3477 to your computer and use it in GitHub Desktop.
Save egardner/c15a864c6c1ecc7c3477 to your computer and use it in GitHub Desktop.
Jekyll JS template for ember & pretender
---
---
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