Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

Templating API

drublic edited this page Apr 15, 2012 · 4 revisions

When using the option template the HTML will include variables for text-content which can come in handy when optimizing internationalization for example. The variables use the Mustache-style so you can fill in the content with JavaScript templating libraries such as Handlebars.js or Hogan.js.

There are the following variables which you can fill with your own text:

updateable: is shown if the current browser supports all the requested features when updated

noagent: is shown if no browser currently supports the requested features

unsupported: is shown when the current browser does not support the requested features but other browsers do

partial: is shown when no browser currently supports the features fully but has partial support

Example with Hogan.js

more to come…

Clone this wiki locally