lettuce
Version:
Lettuce JS, Mini Mobile Framework for Romantic with DSL.
20 lines (12 loc) • 410 B
JavaScript
var SimpleView = new Lettuce.prototype.Class(function () {
});
SimpleView.prototype.init = function () {
};
SimpleView.prototype.render = function (tmpl, id) {
//var result = Lettuce.tmpl("<h3>{%=o."+ type +"%}" + "</h3>", data);
document.getElementById(id).innerHTML = tmpl;
};
var simpleView = {
SimpleView: SimpleView
};
Lettuce.prototype = Lettuce.extend(Lettuce.prototype, simpleView);