Skip to content

Commit 359511a

Browse files
committed
tim-lite.js -> tinytim.js
1 parent f484dfd commit 359511a

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

README.markdown

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ It is safe and secure: it doesn't use eval or (new Function), so it cannot execu
2828

2929
It doesn't include a whole bloat load of features that are unlikely to get used when you just want to get some simple templating up and running.
3030

31-
It comes in two versions: "lite" (which is tiny), and "standard", which has advanced functionality and allows extensibility with plugins.
31+
It comes in two versions: "tinytim.js" (<200kb), and "standard", which has advanced functionality and allows extensibility with plugins.
3232

3333
It's easy to debug.
3434

3535
For these reasons, it is now in use in Sqwidget, the JavaScript widget library: [github.com/premasagar/sqwidget](http://github.com/premasagar/sqwidget)
3636

3737

38-
## Tim & Tim Lite: Core Functionality
39-
There are two versions of Tim: the "standard" (full) version, and a stripped down "lite" version. The core functionality of both versions is identical, and is described below.
38+
## Tim & tinytim.js: Core Functionality
39+
There are two versions of Tim: the "standard" (full) version, and a stripped down "tinytim.js" version. The core functionality of both versions is identical, and is described below.
4040

4141

4242
Tim can be used to replace tokens within a text string with specified data.

index.html

+7-7
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ <h2>Output</h2>
2828
ERB is also <% adj %>, btw.
2929
</script>
3030

31-
<!-- Note: Boolean usage is not tim-lite compatible -->
31+
<!-- Note: Boolean usage is not compatible with tinytim.js -->
3232
<script type="text/tim" class="bool">
3333
{{isWeekend}}
3434
{{day}}
3535
{{/isWeekend}}
3636
</script>
3737

38-
<!-- Note: Array iteration is not tim-lite compatible -->
38+
<!-- Note: Array iteration is not compatible with tinytim.js -->
3939
<script type="text/tim" class="loops">
4040
Some nice fruit:
4141
{{fruit}}
@@ -44,7 +44,7 @@ <h2>Output</h2>
4444
</script>
4545

4646

47-
<!-- Note: Object iteration is not tim-lite compatible -->
47+
<!-- Note: Object iteration is not compatible with tinytim.js -->
4848
<script type="text/tim" class="objects">
4949
Object iteration:
5050
{{things}}
@@ -113,22 +113,22 @@ <h2>Output</h2>
113113

114114
/////
115115

116-
// note: this is not tim-lite compatible
116+
// (not compatible with tinytim.js)
117117
tim.templates("foo", "Cached templates are {{word}}"); // set template named "foo"
118118
var foo = tim.templates("foo"); // get template named "foo"
119119
log += tim(foo, {word:"useful"});
120120

121121
/////
122122

123-
// note: this is not tim-lite compatible
123+
// (not compatible with tinytim.js)
124124
log+= tim("bool", {isWeekend:true, day:"Sunday"});
125125
log+= tim("bool", {isWeekend:true, day:"Saturday"});
126126
log+= tim("bool", {isWeekend:false, day:"Thursday"});
127127

128-
// note: this is not tim-lite compatible
128+
// (not compatible with tinytim.js)
129129
log += tim("loops", {fruit:[{ name:"apple", colour:"green" },{ name:"orange", colour:"orange" },{ name:"banana", colour:"yellow" }]});
130130

131-
// note: this is not tim-lite compatible
131+
// (not compatible with tinytim.js)
132132
log += tim("objects", {things:{ roses:"red", violets:"blue", dogs:"green", oranges:"round" }});
133133

134134
document.getElementById("console").innerHTML = log;

tim-lite.js renamed to tinytim.js

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)