Open dleclere opened 12 years ago
bump this - do you have a repo i can look at? I'm also looking at moving out the eco base functions, and am also looking at putting them into someplace where you can also define custom global helpers that can be included into the template (just like obj.safe and obj.escape) and access the template's current context.
I wanted to use eco for config file generation and I also need that whitespace fix to make it work properly. After all eco statements in the code newlines are inserted which makes the output very ugly. :+1: this.
bump, I'd really like to see this idea of cleaner compiled templates.
this seems like a great PR — is eco still under active maintenance? is there a more active fork of this repo somewhere?
bump. Want to take over @Philipp15b ?
Has anybody tried pinging @sstephenson or anyone else listed as a maintainer directly? They may not be watching the project and may not be getting notified when someone comments.
@mbhnyc Unfortunately, I'm not a user of eco anymore (partly due to the flaws mentioned above).
What are people switching to, out of curiosity? The core feature of eco (embedded CS) I've enjoyed using quite a bit..!
haven't tried it out yet but have been keeping an eye on https://github.com/baryshev/ect
I am currently working on a web application using eco templates for both the server and client. The plan is to pre-compile the templates using brunch and load keep them in the main build file. I just had a look at the minified output and I was horrified at what eco had done.
So in light of this I modified the preprocessor and utilities slightly and corrected these issues.
Later I would like to modify eco further so that it didn't build a copy of its base functions into every template it rendered and instead shared some code brought in through a require. This would reduce the framework agnosticism presently enjoyed by eco, so I am going to have to think about it a little more...