https://github.com/nombrekeff/stml
A simple html preprocessor, just for fun
https://github.com/nombrekeff/stml
html html-preprocessor
Last synced: 10 months 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 (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-02-07T10:28:38.000Z (over 6 years ago)
- Last Synced: 2025-05-07T05:03:51.217Z (about 1 year ago)
- Topics: html, html-preprocessor
- Language: JavaScript
- Homepage:
- Size: 218 KB
- Stars: 12
- Watchers: 1
- 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
[](https://badge.fury.io/js/loggin-js)
[](https://www.npmjs.com/package/loggin-js) [](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**