templates
Advanced tools
Changelog
[0.13.0]
.compileSync
, we felt that it made more sense to add .compileAsync
, since .compile
is a public method and most users will expect it to be sync, and .compile
methods with most engines are typically sync. In other words, .compileAsync
probably won't be seen by most users, but we wanted to explain the decision to go against node.js naming conventions.Changelog
[0.12.0]
Changelog
[0.11.0]
engine
can now be defined on app
or a collection using using app.option('engine')
, views.option('engine')
layout
can now defined using app.option('layout')
, views.option('layout')
. No changes have been made to view.layout
, it should work as before. Resolves issue/#818view
helper has been refactored completely. The helper is now async and renders the view before returning its content.isApp
, isViews
, isCollection
, isList
, isView
, isGroup
, and isItem
static methods. All return true when the given value is an instance of the respective class.deleteItem
method to List and Collection, and deleteView
method to Views._.proto
property which is only exposed for unit tests was renamed to _.plugin
.Changelog
[0.10.7]
isRegistered
feature.Changelog
[0.10.6]
getView
, now that the method has been refactored to be faster.