Phml

Latest version: v0.3.1

Safety actively analyzes 681812 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.3.0

- Add `For` element
- Add `For` element fallbacks similar to `if` -> `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

0.1.1

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](https://github.com/syntax-tree/hast#list-of-utilities) and [unist utils](https://github.com/syntax-tree/unist#list-of-utilities)
* 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](https://tired-fox.github.io/phml/phml.html)

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.