diff options
author | arv@google.com <arv@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-14 00:40:25 +0000 |
---|---|---|
committer | arv@google.com <arv@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-14 00:40:25 +0000 |
commit | 7cd22a5102842cfbb51e06c626d769d81bb78210 (patch) | |
tree | 3a4ba627dc1589201cdb659d2aaa0d99c78111ed /chrome/browser/resources/history.html | |
parent | 76f565227a89e88b6a0a32bf36cc5c01f6e418ca (diff) | |
download | chromium_src-7cd22a5102842cfbb51e06c626d769d81bb78210.zip chromium_src-7cd22a5102842cfbb51e06c626d769d81bb78210.tar.gz chromium_src-7cd22a5102842cfbb51e06c626d769d81bb78210.tar.bz2 |
This provides a simpler js template engine than JsTemplate. It has been
optimized for the way we do internationalization with JST before
and is about 4 times faster (average 4.8ms vs 22.8ms) for the history
page.
The syntax for this is very similar to JsTemplates. It uses the
attributes i18n-values and i18n-content which worls like jsvalues and
jscontent except that it does not allow arbitrary expressions.
BUG=None
TEST=All UI pages should work as before
Review URL: http://codereview.chromium.org/149420
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20590 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources/history.html')
-rw-r--r-- | chrome/browser/resources/history.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/resources/history.html b/chrome/browser/resources/history.html index bafc61e..8333a4d 100644 --- a/chrome/browser/resources/history.html +++ b/chrome/browser/resources/history.html @@ -1,8 +1,8 @@ <!DOCTYPE HTML> -<html id="t" jsvalues="dir:textdirection;"> +<html i18n-values="dir:textdirection;"> <head> <meta charset="utf-8"> -<title jscontent="title"></title> +<title i18n-content="title"></title> <link rel="icon" href="../../app/theme/history_favicon.png"> <script src="local_strings.js"></script> <script> @@ -898,7 +898,7 @@ html[dir='rtl'] .entry .title > a { </style> </head> -<body onload="load();" jsvalues=".style.fontFamily:fontfamily;.style.fontSize:fontsize"> +<body onload="load();" i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize"> <div class="header"> <a href="" onclick="setSearch(''); return false;"> <img src="../../app/theme/history_section.png" @@ -907,7 +907,7 @@ html[dir='rtl'] .entry .title > a { onsubmit="setSearch(this.term.value); return false;" class="form"> <input type="text" name="term" id="term" /> - <input type="submit" name="submit" jsvalues="value:searchbutton" /> + <input type="submit" name="submit" i18n-values="value:searchbutton" /> </form> </div> <div class="main"> |