Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nombrekeff/stml

A simple html preprocessor, just for fun
https://github.com/nombrekeff/stml

html html-preprocessor

Last synced: about 12 hours ago
JSON representation

A simple html preprocessor, just for fun

Awesome Lists containing this project

README

        

# Stimule / STML
A simple html preprocessor made with nodejs, making It for fun

[![npm version](https://badge.fury.io/js/stimule.svg)](https://badge.fury.io/js/loggin-js)
[![npm](https://img.shields.io/npm/dw/stimule.svg?colorB=blue)](https://www.npmjs.com/package/loggin-js) [![Greenkeeper badge](https://badges.greenkeeper.io/nombrekeff/STML.svg)](https://greenkeeper.io/)

### Overview

```sass
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:

```sass



Heyy


You like stones?


```

#### How to install it?
npm:
```shell
$ npm install stimule -g
```

if you downloaded the project from github:
```shell
$ cd name/of/the/project
$ npm install -g
```
#### How to use it?
###### Via command line version:
```shell
$ cd where/the/stmlfile/is
$ stimule [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**