README.md in sprockets_spacely-0.0.2 vs README.md in sprockets_spacely-0.1.0

- old
+ new

@@ -12,13 +12,14 @@ ## In a Rails Initializer (or your Ruby framework's equivalent) ```ruby Sprockets::Mustache::Template::Namespace.value = 'namespace.for.my.templates' +Sprockets::Mustache::Template::Library.value = 'Zepto' ``` -This will take any *.mustache file under Sprockets' paths and generate a closure that sets a function that evaluates your template. +This will take any `*.mustache` file under Sprockets' paths and generate a closure that sets a function that evaluates your template. File: "app/assets/javascripts/my_template.mustache" ```html {{name}}: @@ -40,11 +41,11 @@ }; function render(obj, partials) { return Mustache.to_html(#{@namespace}.mustache['#{@template_name}'].template, obj, partials); } -}(jQuery)); +}(#{@library})); ``` ...which Sprockets will add to the appropriate JavaScript asset bundle. Which means in your code you can call: @@ -57,6 +58,6 @@ ``` ## Versions ### 0.0.2 -- Added ability to use mustache partials \ No newline at end of file +- Added ability to use mustache partials