This isn't at all JK related but I thought I'd post it anyway!
I wrote a template engine for PHP... Yes these are a dime a dozen but this is different. Rather than mixing concerns like this
Transphporm separates the logic from the markup by using a CSS style syntax. The template looks like this:
And allows using CSS like syntax, providing the content and logic:
It does a lot more than this, check it out over on github
https://github.com/Level-2/Transphporm
I wrote a template engine for PHP... Yes these are a dime a dozen but this is different. Rather than mixing concerns like this
Code:
<h1>{{title}}</h1> <p>{{subtitle}}</p> {{if %isAdmin%}} <div>conditionally show this</div> {{/if}}
Transphporm separates the logic from the markup by using a CSS style syntax. The template looks like this:
Code:
<h1>A title</h1> <p>sub title</p> <div>conditionally show this</p>
And allows using CSS like syntax, providing the content and logic:
Code:
h1 {content: "My Title"} p {content: "My Subtitle" } div:data[isAdmin=false] {display: none}
It does a lot more than this, check it out over on github
https://github.com/Level-2/Transphporm
TheJkWhoSaysNiTheJkWhoSaysNiTheJkWhoSaysNiTheJkWho
SaysNiTheJkWhoSaysNiTheJkWhoSaysNiTheJkWhoSaysNiTh
eJkWhoSaysNiTheJkWhoSaysNiTheJkWhoSaysNiTheJkWhoSa
ysNiTheJkWhoSaysNiTheJkWhoSaysNiTheJkWhoSaysNiTheJ
kWhoSaysNiTheJkWhoSaysNiTheJkWhoSaysNiTheJkWhoSays
NiTheJkWhoSaysNiTheJkWhoSaysNiTheJkWhoSaysNiTheJkW
SaysNiTheJkWhoSaysNiTheJkWhoSaysNiTheJkWhoSaysNiTh
eJkWhoSaysNiTheJkWhoSaysNiTheJkWhoSaysNiTheJkWhoSa
ysNiTheJkWhoSaysNiTheJkWhoSaysNiTheJkWhoSaysNiTheJ
kWhoSaysNiTheJkWhoSaysNiTheJkWhoSaysNiTheJkWhoSays
NiTheJkWhoSaysNiTheJkWhoSaysNiTheJkWhoSaysNiTheJkW