Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update docs for name_filter changes. [ci skip]

  • Loading branch information...
commit c566a2504bb6edf755aecc3be7ed28177feb8d4d 1 parent c734f52
@netzpirat authored
Showing with 5 additions and 4 deletions.
  1. +1 −0  CHANGELOG.md
  2. +4 −4 README.md
View
1  CHANGELOG.md
@@ -8,6 +8,7 @@ Please have a look at the [Haml Coffee Changelog](https://github.com/netzpirat/h
## 1.10.0 - January 13, 2013
+- The default name filter removes a leading underscore `_` from the template name.
- [#79][]: Add ActionView::Template handler for hamlc files. ([@jimmycuadra][])
## 1.9.1 - January 8, 2013
View
8 README.md
@@ -275,10 +275,10 @@ If you wish to put the templates in a different location, you may want to change
config.hamlcoffee.name_filter = lambda { |n| n.sub /^templates\//, '' }
```
-By default, `name_filter` strips the leading `templates/` directory off of the name. Please note, `name_filter` is only
-applicable if you use the `.hamlc` extension and let Haml Coffee Assets handle the JST generation. If you use the
-`.jst.hamlc` extension, then Sprockets JST processor will name things accordingly (e.g., with `templates/` intact in
-this case).
+By default, `name_filter` strips the leading `templates/` directory off of the name and also a leading `_` from the
+template name. Please note, `name_filter` is only applicable if you use the `.hamlc` extension and let Haml Coffee
+Assets handle the JST generation. If you use the `.jst.hamlc` extension, then Sprockets JST processor will name
+things accordingly (e.g., with `templates/` intact in this case).
The template name filter is not used with AMD loader.
Please sign in to comment.
Something went wrong with that request. Please try again.