Closed garrettw closed 7 years ago
Hey sounds good. If there is a great need for Transphorm, why not. I will check that out and if all is fine, i will create a new pimf-Transphorm bundle. OK?
Review: please register the Transphporm class for autoloading at autoload.core.php
file.
Done.
If there is a great need for Transphorm, why not.
I'm sure there's not a great need; a lot of people know and use Twig. However, you have included an engine called Haanga which is not widely known, and it caters to a niche audience that is comfortable with Django templating syntax. So I thought adding Transphporm would be useful because it caters to developers who (1) dislike popular engines, like Twig, that mix logic with markup and (2) are comfortable with using CSS syntax to transform HTML.
My philosophy about adding template engines is that we should include the most popular ones (to make it easier for developers coming from other frameworks), and then we should also include some that are not well known but that either (1) use improved design principles compared to the popular ones or (2) satisfy the needs of a special niche better than the popular ones. Haanga would fall under (2), and Transphporm probably falls mostly under (1) and a bit under (2).
Once you create a bundle for it, I would be happy to get it fully working for you. Or if you prefer, I can go ahead and create the bundle under my own account and then you could either link to it or fork it.
Thank you for taking time and writing that great argumettaion. I have similar opinion to Transphporm. And yes, please go ahead and create the bundle under your own account.
Before that I would like to release pimf v1.10.1 inluding all your improvements:
I would say do not wait for #23 to be completed, because the changes listed there WILL break backward compatibility and therefore it will have to start out as v2.0-alpha. So you can release the other fixes now if you want.
Now there is PIMF v1.11.0-alpha awaylable that includes support of Transphporm template engine. Please create a bundle and give me a feedback if all is fine. After that i will release v1.11.0 and will write a blog posts to promote the release.
Ok. I will let you know after I am able to test it successfully.
Level-2/Transphporm is my favorite templating engine, so I made an adapter for Pimf so that I could use them together. Please note that the underlying API is slightly different from Twig and Haanga. Here is an example of the API using code from the Twig/Haanga app templates.
Here is the content of
hello.tss
. Of course, this is a very simplified example and Transphporm is capable of much more.And finally, here is the content of
blog.xml
just to show what's going on.