Shini92, to rust
@Shini92@mas.to avatar

I'm thinking about how I could a good for
I may orientate on existing CLIs like , or

so e.g.

hsml compile # compiles all .hsml files to .html inside current folder and recursive below  
hsml compile ./example.hsml # just compiles the given file  
hsml fmt # formats  
hsml fmt # just formats given file  
hsml parse ./example.hsml # parses the given file and std::out as json AST  

But I'm not sure if this fulfills all need or if I need to change something

Shini92, to rust
@Shini92@mas.to avatar

#hsml now has the ability to read a file from the command line and create an HTML file from it 🥳

At the current stage 🚧 of the project, I don't want to release the crate just yet, so you'll need to clone the repo if you want to try it

Then just run e.g. cargo run -- example.hsml and an example.html will be written (or panic 😜)

The #cli arguments are subject to change at any time before an official release

It uses #clap under the hood

https://github.com/Shinigami92/hsml

#Rust #html #wip

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • mdbf
  • DreamBathrooms
  • everett
  • magazineikmin
  • Durango
  • InstantRegret
  • rosin
  • Youngstown
  • love
  • slotface
  • GTA5RPClips
  • kavyap
  • ethstaker
  • Leos
  • ngwrru68w68
  • thenastyranch
  • tacticalgear
  • cubers
  • modclub
  • osvaldo12
  • cisconetworking
  • tester
  • khanakhh
  • normalnudes
  • provamag3
  • anitta
  • JUstTest
  • All magazines