Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/nombrekeff/stml
- Owner: nombrekeff
- License: mit
- Created: 2016-12-24T11:10:38.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-02-07T10:28:38.000Z (almost 5 years ago)
- Last Synced: 2023-10-20T22:06:52.211Z (about 1 year ago)
- Topics: html, html-preprocessor
- Language: JavaScript
- Homepage:
- Size: 218 KB
- Stars: 13
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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**