0.1.1 • Published 10 years ago

octosmashed-fixtures-brunch v0.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

octosmashed-fixtures-brunch

This is a Brunch plugin built specifically for Octosmashed, an Ember.js/Brunch static blogging framework. It is a port of the yaml-front-matter-brunch Brunch plugin.

It is very unlikely you will use this module outside of Octosmashed but, if you do, here is some info on how it functions. For more info, see the original module README and the Octosmashed README.

How it works

This plugin watches markdown files and compiles them into a javascript module. The plugin parses your post with marked, highlights code blocks with highlight.js, and intelligently handles handlebars braces to allow Handlebars templates to be compiled in an Ember app whilst also allowing code blocks displaying handlebars to be highlighted and not parsed by the Ember/Handlebars app.

Thus, you can use Handlebars helpers like {{link-to}} in your markdown file and the file can be parsed as a Handlebars template, rendering the link within your Ember app. You can also write Handlebars in your markdown code blocks and they will not be parsed, just rendered as HTML entities on the page.