Skip to content

yuanzui-cf/Grass-Free-HTML

Repository files navigation

Grass FreeHTML Parser

Grass FreeHTML Parser is a parser for FreeHTML.

FreeHTML is a markup language which is first mentioned and made by Aroton Studio. The purpose of FreeHTML is to make writing web pages easier. For example, you just need to write <html5> instead of <!DOCTYPE html>.

How to use it

If you just need to parse one page, you can use:

gfp [Page Path] [Output Path]

For example

gfp ./text.fht ./text.html

Then, you will see text.html in your folder.

Sometimes we want to parse many pages, and it is inefficient to parse one by one. We can create a file named fhtconfig.json. Content like:

[
  {
    "in":"FHT Path",
    "out":"Output Path"
  },
  {
    "in":"FHT Path",
    "out":"Output Path"
  }
]

There is a optional option called compress. The type of compress is bool. If this option is true, the output document will be compressed. Content like:

[
  {
    "in":"FHT Path",
    "out":"Output Path",
    "compress":true
  }
]

Then, you just need to enter:

gfp

Then, your pages will be parsed in a few moments.

About

This is a parser for FHTML

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •