Skip to content
No description or website provided.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
src
vendor
README.md
build.js
config.js
package.json

README.md

requirejs-handlebars i18n Example

Introduction

Example project to use the requirejs-handlebars plugin with preprocessing to render translated texts in the templates before precompilation.

The trick is to use a template engine with a different syntax (different delimiters than {{.}}).

See config.js for the example implementation.

Installation

git clone git@github.com:webpro/requirejs-handlebars-i18n-example.git
cd requirejs-handlebars-i18n-example
npm install

Runtime

/src/index.html
/src/index.html#[en|nl]

Build

 r.js -o build.js language=[en|nl]
Something went wrong with that request. Please try again.