Skip to content

Releases: Tired-Fox/phml

v0.3.0 Full Library Rewrite

11 Apr 20:32
16fce2d
Compare
Choose a tag to compare

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:

  1. Clone the repo
  2. Navigate to the root directory
  3. 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 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

v0.1.1 | Welcome To PHML

30 Nov 23:43
Compare
Choose a tag to compare

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