SE7ENSKY / jade2php

Unlock Jade for PHP! Convert Jade templates into raw PHP templates. CLI tool and JavaScript API. Test covered.
43 stars 10 forks source link

`add()` `attr_class()` & `attr()` are unknown. #32

Closed janwirth closed 8 years ago

janwirth commented 8 years ago

Where can I get these functions? are they included in some js library?

ivankravchenko commented 8 years ago

It's a runtime.php: https://github.com/SE7ENSKY/jade2php/blob/master/support/runtime.php

janwirth commented 8 years ago

So this is a file I have to manually include in my project? Or is there a smarter way to do this?

ivankravchenko commented 8 years ago

When you just use jade2php, runtime should be included into resulting file. If you use --omit-php-runtime, then you should include runtime.php manually.

janwirth commented 8 years ago

Nice! Thank you. I want to improve the documentation. Should I extend the readme or the wiki?

ivankravchenko commented 8 years ago

I think README is first place to update. Do we have a wiki? :)

janwirth commented 8 years ago

Per default, in the sidebar on the right below pull requests.