Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jiko

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jiko

Jiko Template Engine

  • 0.10.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

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 %}

Keywords

FAQs

Package last updated on 15 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc