OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 /** | 5 /** |
| 6 * NOTE: The use of this file is deprecated. Use i18n_template2.js instead. |
| 7 * |
6 * @fileoverview This is a simple template engine inspired by JsTemplates | 8 * @fileoverview This is a simple template engine inspired by JsTemplates |
7 * optimized for i18n. | 9 * optimized for i18n. |
8 * | 10 * |
9 * It currently supports two handlers: | 11 * It currently supports two handlers: |
10 * | 12 * |
11 * * i18n-content which sets the textContent of the element | 13 * * i18n-content which sets the textContent of the element |
12 * | 14 * |
13 * <span i18n-content="myContent"></span> | 15 * <span i18n-content="myContent"></span> |
14 * i18nTemplate.process(element, {'myContent': 'Content'}); | 16 * i18nTemplate.process(element, {'myContent': 'Content'}); |
15 * | 17 * |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 handlers[name](element, att, obj); | 113 handlers[name](element, att, obj); |
112 } | 114 } |
113 } | 115 } |
114 } | 116 } |
115 } | 117 } |
116 | 118 |
117 return { | 119 return { |
118 process: process | 120 process: process |
119 }; | 121 }; |
120 })(); | 122 })(); |
OLD | NEW |