stimule

0.1.1 • Public • Published

Stimule / STML

A simple html preprocessor made with nodejs, making It for fun

npm version npm

Overview

div#target(.bold .row)[click="doX()"]
  div(.col-4)
    span "Heyy"
  div(.col-6)
    span "You like stones?"

The above piece of stml syntax will result in:

<div id="target" class="bold row" click="doX()">
  <div class="col-4">
    <span>Heyy</span>
  </div>
  <div class="col-6 centered">
    <span>You like stones?</span>
  </div>
</div>

How to install it?

npm:

$ npm install stimule -g

if you downloaded the project from github:

cd name/of/the/project
$ npm install -g

How to use it?

Via command line version:
cd where/the/stmlfile/is
$ stimule <input_file> [output_file]

You have to call stimule command with two parameters:

  1. input_file #required: should be a stml file

  2. output_file #optional: the name/path for the output html file, defaults to the name of input_file

Readme

Keywords

none

Package Sidebar

Install

npm i stimule

Weekly Downloads

0

Version

0.1.1

License

ISC

Unpacked Size

25 kB

Total Files

12

Last publish

Collaborators

  • _nkeff_