v4.0.0 - Version 4 update!
👋 Aloha! Been a long time since a new release. This one isn't spectacularly crazy, but it does contain 100% breakage. Modello is no longer a static
-based class, and instead is a traditional class that requires instantiation. Here's the work that's been done:
- Rewrote class to a traditional class (no static methods except
::parse()
) - Constructor allows specifying path to views and cache at creation
- Updated regex in the conditional handlers to allow nested parentheses (this wasn't working before)
- Cache is now enabled by default (sensible default behavior)
- Updated documentation to reflect all features of the compiler
- Only the conditional and loop directives (
@if ()
and@foreach ()
) can have a space between the directive and the parentheses. This isn't true for@yield
or@block
anymore, as I'm trying to replacepreg
withstr
when I can.
And as a general status update, I do intend on making additional improvements as I start and continue work on some personal projects. Expect more features and improvements in the future! 😁