It was weird that the php port comes with the full node package - in case node is available (if I remember right) and it's weird because the handling of variables was not 100% consistent. Sometimes you had to write $var['key'] - but maybe these problems are solved now, haven't installed it for quite some time.
No no, it doesn't require Node at all! The information I gave was probably old or misleading.
I know their goal was to make it 100% compatible with the Node version, so I'm sure everything in the Node version, works in the php version. github.com/pug-php/pug
I love pug (since jade days) and especially the markdown filter is neat for simple content that might need some more complex html.
pugjs.org/language/filters.html
someone wrote an article about it here: dev.to/patarapolw/pug-with-markdow...
PS: I'm using the php pug port :D which is a bit weird, but works well.
Is the port weird or is using it in PHP weird?
It was weird that the php port comes with the full node package - in case node is available (if I remember right) and it's weird because the handling of variables was not 100% consistent. Sometimes you had to write
$var['key']
- but maybe these problems are solved now, haven't installed it for quite some time.But else, it rocks.
Oh so it still requires Node to run and provides a
$var
array for variables? That is weird. ๐No no, it doesn't require Node at all! The information I gave was probably old or misleading.
I know their goal was to make it 100% compatible with the Node version, so I'm sure everything in the Node version, works in the php version.
github.com/pug-php/pug
Yeah, me too! ๐
I've never really used filtering though. I'll definitely give it a look ๐
I was unaware of some of the ports and packages that have come out. Yet to try out the React integration ๐