AHTML Preprocessor
What's AHTML?
AHTML (Advanced HyperText Markup Language) is an advanced version of html that makes your life waaay easier!
Install
yarn global add ahtml
ornpm install -g ahtml
- Create an html file
- Write advanced html code in it, try copying and pasting the examples too
ahtml path/to/file.html
- Now your code is compiled! working watch function soon™️
AHTML CLI
ahtml path/to/file [path/to/destination, --no-minify]
path/to/file
guess what :^)
Path/to/destination
Can you even read?
--no-minify
The compiled html code won't be minified
--watch / --w
This compiles the code everytime the selected file changes.
Docs
Markdown (md)
<!--From this--> **Hello, I am bold!** <!--To this-->Hello, I am bold!
<!--Or from this--> # Hello, I will be ignored! <!--To this-->Hello I am some markdown!AND i AM BOLD <!--The content inbetween <md> gets ignored because a source is already present-->
is an element that compiles markdown to html, it's useful for making the code more readable.
Attributes
- src , file path to the imported markdown file, if you put an src attribute, any content inside it will be ignored.
Sass
<!--From this--> $header-size: 100px; h1 { font-size: $header-size; } <!--To this-->
<!--Or from this--> <!--To this-->
it's an element that compiles sass and scss to normal css.
Attributes
- src , file path to the imported sass file, if you put an src attribute, any content inside it will be ignored.