jsRender-rails 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -2
- data/jsRender-rails.gemspec +1 -1
- data/lib/jsRender-rails/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -30,7 +30,7 @@ $(body).append($.render["views/user"]({name:"Sebastian Pape"}));
|
|
30
30
|
If the path to all of your views/templates have a common prefix that you prefer is not included in the template's name, you can set this option in `config/application.rb`:
|
31
31
|
|
32
32
|
```ruby
|
33
|
-
config.
|
33
|
+
config.jsRender.prefix = "views"
|
34
34
|
```
|
35
35
|
|
36
36
|
That would change the previous example to this:
|
@@ -42,7 +42,7 @@ $(body).append($.render["user"]({name:"Sebastian Pape"}));
|
|
42
42
|
The prefix can also be a regular expression. For example, to use only the name of the file for the template name, regardless of directory structure:
|
43
43
|
|
44
44
|
```ruby
|
45
|
-
config.
|
45
|
+
config.jsRender.prefix = %r{([^/]*/)*}
|
46
46
|
```
|
47
47
|
|
48
48
|
## Acknowledgements
|
data/jsRender-rails.gemspec
CHANGED