schmittjoh/JMSTwigJsBundle — pull request #7 by jonathaningram (2012-03-10 00:31:22+00:00)
Title: [WIP] Creating FormExtension for twig.js

Originally from https://github.com/schmittjoh/JMSTwigJsBundle/issues/5

Notes:

* I have put everything into the `public/js` dir for now (including binary files and non-asset related files) - eventually I'd want that the `public` dir only contained relevant files.
* To run `bin/compile.php`, locally, I am just symlinking `twig.js`, the `twig` dir and twig.js's `export.js` file to `twig_export.js` - eventually I'll figure out the best way to use multiple libraries together
* I am using a `php.array` library that contains ported code from http://phpjs.org/ - eventually I'd like to use this library directly, or provide `php.*` in a separate repo/project.
* Overall I am still learning Google Closure and so the dependency management is an issue and needs improvement. Happy to get any feedback to help with Google Closure-related issues.
* If you get the symlinks setup correctly, you should be able to run the `all_tests.html` file - currently all tests are working for me. Again, still need to figure out the best way to include dependencies/sources in test files.
* I separated the test files from the source code because I think it's much nicer and because symfony does that too. I know Google Closure and twig.js combine source code and test files.
* I decided from the beginning to just use the same namespaces as symfony - it's a bit more typing and looks a bit extreme, but we'll see how it goes.

Can't wait to hear your feedback!