projects
/
mkws-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove testing URL for mkws-complete from prettysimple
[mkws-moved-to-github.git]
/
src
/
mkws-handlebars.js
diff --git
a/src/mkws-handlebars.js
b/src/mkws-handlebars.js
index
866dc8a
..
bd9af8d
100644
(file)
--- a/
src/mkws-handlebars.js
+++ b/
src/mkws-handlebars.js
@@
-96,3
+96,11
@@
Handlebars.registerHelper('mkws-commaList', function(items, options) {
Handlebars.registerHelper('mkws-index1', function(obj) {
return obj.data.index + 1;
});
Handlebars.registerHelper('mkws-index1', function(obj) {
return obj.data.index + 1;
});
+
+Handlebars.registerHelper('mkws-repeat', function(count, options) {
+ var out = "";
+ for (var i = 0; i < count; i++) {
+ out += options.fn(this);
+ }
+ return out;
+});