Releases: Tired-Fox/phml
v0.3.0 Full Library Rewrite
Installation
PIP:
Without features:
python -m pip install --upgrade phml
pip3 install --upgrade phml
Markdown feature:
python -m pip install --upgrade phml[markdown]
pip3 install --upgrade phml[markdown]
From source:
- Clone the repo
- Navigate to the root directory
- Run the repective command for no features or with the markdown feature.
python -m pip install -e .
python -m pip install -e .[markdown]
v0.3.0 Changes
-
Add
For
element -
Add
For
element fallbacks similar toif
->elif
->else
-
Add
For
error message that is exposed to the page -
Add
python
module import system -
Add component hashing
-
Add scoped component style elements
-
Add dynamic compiler steps
-
Add ability to add custom steps to either setup, scoped, or post step processes
-
Add base phml compilation steps
- conditional elements
- embedded python
- wrapper scope
For
element- components
-
Add optional
Markdown
element / feature -
Add ability to format text and files. Either phml or html
-
Add ability to compress the output
-
Add context manager for easy file IO
-
Remove support for XML
-
Components are now scoped based on hashing
-
API docs have been regenerated
-
Rewrite parsing from phml/html to phml AST
-
Rewrite compiling from phml AST to html
-
Rewrite embedded python parsing
-
Rewrite component parsing and component system
-
... And much more, the entire library has been rewritten for optimization and overall use
v0.1.1 | Welcome To PHML
This is the first release of phml. With that being said that also means that this release contains a lot of new things.
To put in a brief summary some features are:
- Parsing phml, html, json into the phml ast object
- Compiling phml/html ast into an html, phml, or json string
- Writing compiled content directly to a file
- Utility methods that cover most to all of hast utils and unist utils
- Some minimal examples - More in-depth ones coming soon!
- API Documentation - Soon to be general docs and API Docs
This release is on pypi
!
You can install this version with pip3 install --upgrade phml
or python3 -m pip install --upgrade phml
.
API Documentation can be found here