JavaScript 的 MVC 框架 Serenade.js

fmms 13年前
     <p>Serenade.js 是一个 JavaScript 的 MVC 框架,提供一个强大的模板引擎、数据绑定以及缓存功能,无需依赖其他第三方JS库。</p>    <ul>     <li>Super pretty, powerful yet logic-less template language</li>     <li>Data bindings keep your views up-to-date without any extra work</li>     <li>Powerful caching features</li>     <li>Absolutely no dependencies, everything works without jQuery</li>     <li>No need to inherit from base classes anywhere (though you can if you want)</li>    </ul>    <p>示例代码:</p>    <pre class="brush:javascript; toolbar: true; auto-links: false;">var controller = { say: function() { alert("Hello " + this.model.name) } }; var model = { name: "Jonas" };  var element = Serenade.view('button[event:click=say] "Say hello"').render(model, controller) document.body.appendChild(element)</pre>    <p><strong>项目主页:</strong><a href="http://www.open-open.com/lib/view/home/1328286080093" target="_blank">http://www.open-open.com/lib/view/home/1328286080093</a></p>