https://github.com/webpro/requirejs-handlebars-i18n-example
https://github.com/webpro/requirejs-handlebars-i18n-example
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/webpro/requirejs-handlebars-i18n-example
- Owner: webpro
- Created: 2013-12-01T13:56:33.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-12-01T15:41:46.000Z (over 12 years ago)
- Last Synced: 2025-01-24T19:14:07.154Z (over 1 year ago)
- Language: JavaScript
- Size: 168 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# requirejs-handlebars i18n Example
## Introduction
Example project to use the [requirejs-handlebars](https://github.com/webpro/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](./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]