mjkaufer / JSML

:scroll: Dynamic, JSON powered HTML
34 stars 1 forks source link

Additions and features - 3 #9

Closed phikal closed 9 years ago

phikal commented 9 years ago

In this PR I added/changed:

And as always, complain if you want something removed or changed, and it will be done as soon as I get to it.

mjkaufer commented 9 years ago

The only problem I have is the new eval tag. I would remove this as, to me, it seems a bit redundant, as the user can do everything which the new eval tag allows through the plain old text tag.

Otherwise, everything looks great. I like the modularization of the readmes, and the new file tag is also pretty awesome.

Also, when you remove the eval stuff, you can up the package.json version to 1.0.9, as I'll push this all to npm when you're done.

Thanks!

phikal commented 9 years ago

As far as i know you can't write 4 * 8 + 3 in a text tag and expect a 35. But doesn't matter, going to remove it from the main branch for now as soon as I get to it.

phikal commented 9 years ago

Changed it. If you change your mind, the eval tag can still be found in https://github.com/phikal/JSML/tree/eval-tag.

mjkaufer commented 9 years ago

I just tested the arithmetic problem you mentioned with the latest version.

Running


var jsml = require('node-jsml')

jsml.toJSML("[{t:'p',T:3*3}]")

returned

<!DOCTYPE html>
<html>
    <p>9</p>
</html>

which is correct.

Everything else looks awesome, though. Merging now.

phikal commented 9 years ago

or now you would have to use parse instead of toJSML