Giter Club home page Giter Club logo

jiko's Introduction

Jiko

{% raw %}

Build Status npm

Jiko is a modern and easy to use template engine for Javascript. Its objective is to provide to Javascript programmers a way to write templates with an engine as powerful as server-side state of the art template engines like Jinja and Mako.

    <%
        var rows = _.map(_.range(0, 10), function(el) { return _.range(0, 10); });
    %>
    {% function name="makeRow" %}
        <tr>
        % a.row.forEach(function(name) {
            <td>${name}</td>
        % });
        </tr>
    {% end %}

    <table>
        % rows.forEach(function(row) {
            %{makeRow({row: row})}
        % });
    </table>

Jiko's features:

  • Its syntax is as simple and direct as possible. Influenced by well-known template engines.
  • Don't reinvent the wheel! Why use a new language for expressions when you can use JavaScript?
  • Allows multiple templates to be defined in a single template file.
  • Compiles templates directly to Javascript to be one of the fastest JavaScript template engines ever.
  • Allows browser-side on-the-fly compilation for development and server-side compilation for production.
  • Works in a browser (IE7, Chrome, Firefox) and inside Node.js.
  • Uses the MIT open source licence.

Jiko is still in development. You can help to improve it on Github.

Interested? Take a look at the Documentation.

{% endraw %}

jiko's People

Contributors

nicolas-van avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

jiko's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.