diff options
| author | Jacob Thornton <[email protected]> | 2012-01-23 19:55:00 -0800 |
|---|---|---|
| committer | Jacob Thornton <[email protected]> | 2012-01-23 19:55:00 -0800 |
| commit | 82de03b67cf729291ea5a73741e44838a42940f8 (patch) | |
| tree | 5a16cf77e83433096cbb57ba5cd455bf580806f9 /docs/build | |
| parent | b4b1ef68398b68dcdfa29465d06cd76d6bf2c49d (diff) | |
| download | bootstrap-82de03b67cf729291ea5a73741e44838a42940f8.tar.xz bootstrap-82de03b67cf729291ea5a73741e44838a42940f8.zip | |
start wrapping text in {{_i}} for translation
Diffstat (limited to 'docs/build')
| -rw-r--r-- | docs/build/index.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/build/index.js b/docs/build/index.js index 4536238c4..9c240ca36 100644 --- a/docs/build/index.js +++ b/docs/build/index.js @@ -6,7 +6,7 @@ var layout, pages // compile layout template layout = fs.readFileSync(__dirname + '/../templates/layout.mustache', 'utf-8') -layout = hogan.compile(layout) +layout = hogan.compile(layout, { sectionTags: [{o:'_i', c:'i'}] }) // retrieve pages pages = fs.readdirSync(__dirname + '/../templates/pages') @@ -18,7 +18,9 @@ pages.forEach(function (name) { , context = {} context[name.replace(/\.mustache$/, '')] = 'active' - page = hogan.compile(page) + context._i = true + + page = hogan.compile(page, { sectionTags: [{o:'_i', c:'i'}] }) page = layout.render(context, { body: page }) |
