Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

templates

Package Overview
Dependencies
Maintainers
2
Versions
154
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

templates - npm Package Versions

1
16

0.13.0

Diff

Changelog

Source

[0.13.0]

  • All template handling is async by default. Instead of adding .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.
  • Improved layout detection and handling
jonschlinkert
published 0.12.0 •

Changelog

Source

[0.12.0]

  • Adds helper methods, .hasAsyncHelper, .hasHelper, .getAsyncHelper, and .getHelper
  • Ensures that both collection and app routes are handled when both are defined for a view
jonschlinkert
published 0.11.4 •

jonschlinkert
published 0.11.3 •

jonschlinkert
published 0.11.2 •

jonschlinkert
published 0.11.1 •

jonschlinkert
published 0.11.0 •

Changelog

Source

[0.11.0]

  • Default engine can now be defined on app or a collection using using app.option('engine'), views.option('engine')
  • Default 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/#818
  • Improves logic for finding a layout, this should make layouts easier to define and find going forward.
  • The built-in view helper has been refactored completely. The helper is now async and renders the view before returning its content.
  • Adds isApp, isViews, isCollection, isList, isView, isGroup, and isItem static methods. All return true when the given value is an instance of the respective class.
  • Adds deleteItem method to List and Collection, and deleteView method to Views.
  • Last, the static _.proto property which is only exposed for unit tests was renamed to _.plugin.
jonschlinkert
published 0.10.7 •

Changelog

Source

[0.10.7]

  • Force-update [base][] to v0.6.4 to take advantage of isRegistered feature.
jonschlinkert
published 0.10.6 •

Changelog

Source

[0.10.6]

  • Re-introduces fs logic to getView, now that the method has been refactored to be faster.
doowb
published 0.10.5 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc