express-partials
Advanced tools
Comparing version 0.1.1 to 0.2.0
0.2.0 / 2014-01-18 | ||
================== | ||
* Add option to specify global default layout path | ||
* Added a link to express 2.x ejs example. Closes #39. | ||
0.1.1 / 2013-03-21 | ||
@@ -3,0 +9,0 @@ ================== |
@@ -49,4 +49,7 @@ var path = require('path') | ||
// default layout | ||
if( layout === true || layout === undefined ) | ||
layout = 'layout'; | ||
if( layout === true || layout === undefined ) { | ||
// Try to find default layout in view options, if not found, seek for 'layout' | ||
var viewOptions = res.app.get('view options'); | ||
layout = viewOptions && viewOptions.defaultLayout || 'layout'; | ||
} | ||
@@ -53,0 +56,0 @@ // layout |
@@ -5,3 +5,3 @@ { | ||
"description": "Express 3.x Layout & Partial support.", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "url": "https://github.com/publicclass/express-partials" |
@@ -55,2 +55,4 @@ [![build status](https://secure.travis-ci.org/publicclass/express-partials.png)](http://travis-ci.org/publicclass/express-partials) | ||
For an example on how to use partials in the first place I'd recommend you checking out the [Express 2.x ejs example](https://github.com/visionmedia/express/tree/2.x/examples/ejs). | ||
## Template Support | ||
@@ -100,2 +102,2 @@ | ||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | ||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27907
47
667
102