Node.js的客户端Web框架 kibi

jopen 12年前
     <p>kibi 包括:</p>    <ul>     <li>模板引擎</li>     <li>URL 路由功能</li>     <li>JSONP 实现</li>     <li>页面加载指示器</li>     <li>支持 pushState</li>    </ul>    <p>示例代码:</p>    <pre class="brush:html; toolbar: true; auto-links: false;"><html>  <!-- use scripts as you would normally-->  <script src="/jquery.js"></script>    <!-- use the text/plain type to avoid evaluation -->  <script type="text/plain" data-kibi='{    pathname: /^\/$/,    location: "http://mydomain.com/examplejsonp?callback="  }'>    <p>Welcome to my site!</p>      <p>Here is some dynamic content:</p>      <p><% JSON.stringify(this) %></p>      <% kibi.template.footer() %>  </script>    <script type='text/plain' data-kibi='{id: "footer"}'>    <p>This is the footer.</p>  </script>    <script type='text/plain' data-kibi='{pathname: /.*/}'>    <h1>Not found.</h1>  </script>    <!-- load kibi last to make sure it can find everything -->  <script><!-- inlined kibi source code--></script>  </html></pre>项目地址:    <a href="/misc/goto?guid=4958200259638739750" target="_blank">https://github.com/jed/kibi</a>    <p></p>