hsml

Crates.iohsml
lib.rshsml
version0.1.0
sourcesrc
created_at2023-05-28 20:41:55.935267
updated_at2023-05-28 20:41:55.935267
descriptionA pug-inspired HTML preprocessor
homepage
repositoryhttps://github.com/Shinigami92/hsml
max_upload_size
id876707
size95,762
Shinigami (Shinigami92)

documentation

README

Build Status License: MIT Donate: PayPal

UNDER CONSTRUCTION

Right now there is no usable version of hsml available. I'm just working on it.

HSML - Hyper Short Markup Language

hsml is a hyper short markup language that is inspired by pug (aka jade).

What is it?

  • hsml is written in Rust and compiles to HTML.
  • There will be a binary that can take CLI arguments to compile a .hsml file to a .html file, but also there will be some other arguments to e.g. format a .hsml file.
  • There will be also a library that can parse a .hsml file and return an AST for it. It is planned that this AST can be used in the JS ecosystem as well, so tools like ESLint and Prettier can work with it.
  • There are two major differences between pug and hsml
    • hsml will support TailwindCSS and similar CSS frameworks out of the box, even with arbitrary values like .bg-[#1da1f2] or lg:[&:nth-child(3)]:hover:underline
    • hsml will not support template engine syntax. It is just an HTML preprocessor.

Why doing it?

  • I want to learn Rust
  • I use pug for my projects but sadly pug's goal mismatches my preferences and comes with a lot of overhead I don't need
Commit count: 53

cargo fmt