README.md in deas-nm-0.3.0 vs README.md in deas-nm-0.4.0
- old
+ new
@@ -60,9 +60,17 @@
c.template_source "/path/to/templates" do |s|
s.engine 'nm', Deas::Nm::TemplateEngine, 'handler_local' => 'view_handler'
end
```
+Nm doesn't cache templates by default. To enable caching, pass a `'cache'` option when registering:
+
+```ruby
+ c.template_source "/path/to/templates" do |s|
+ s.engine 'nm', Deas::Nm::TemplateEngine, 'cache' => true
+ end
+```
+
## Installation
Add this line to your application's Gemfile:
gem 'deas-nm'