Closed phikal closed 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!
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.
Changed it. If you change your mind, the eval
tag can still be found in https://github.com/phikal/JSML/tree/eval-tag.
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.
or now you would have to use parse
instead of toJSML
In this PR I added/changed:
/doc/
/doc/LANG.md
)/bin/compile.js
to/lib/common.js
index.js
'stoJSML
toparse
. (It's not really converting anything to JSML, so I thought it was appropriate)parse/toJSML
'seval
be optional.And as always, complain if you want something removed or changed, and it will be done as soon as I get to it.