Comments (15)
what is the plan? just curious since I'm feeling the pain to read all this jade code
from strider.
Yeah, definitely won't be Jade. I'm not sure what to use yet instead. Any suggestions?
/cc'ing @peterbraden for some pointers...
from strider.
Yeah, I don't really know what the best template engine for node is at the moment. They all seem to suck in their own ways :)
Definitely want to look at a system where you can do modular views with templates so it's easy to add view code as plugins - dashboards etc.
from strider.
Templates, almost by definition lack modularity. Something I was trying to address with dolphy.js until I realized I don't have any web apps I want to write in my spare time anymore ;) But the other main benefit was that they are valid JS data structures (JSON), so there is no parser, and you can manipulate them in code. Downside might be lack of beauty (ala Jade), but as I think we've determined, that's only skin deep.
from strider.
Anyway if nothing else floats your boat, you can probably convince me to work on dolphy again. The code and tests are solid, but it totally lacks docs and real-world use. Obviously writing some docs would be priority zero. It is designed to work with node and requirejs out of the box, so it could be used both server and client-side.
from strider.
Current suggestions:
- EJS: http://www.embeddedjs.com
- Swig: http://paularmstrong.github.com/swig/
- Dolphy: https://github.com/caseman/dolphy
Thoughts/additional ideas?
from strider.
there's always handlebars: http://handlebarsjs.com/
IMHO ejs and swig smell too much like JSPs.
from strider.
I'm also curious what soured you on Jade. Can't be the significant whitespace ;)
from strider.
Jade syntax is super ugly and hard to parse, I personally detest template
engines that eschew html.
I actually like swig - template inheritance is super useful in this sort of
scenario. EJS is also widely known and used, so is a reasonable choice.
handlebars is a little too logicless to be easy to use here - while it's
great for manipulating snippets of html, it gets clunky when you're doing
the whole page.
There's also a bunch more engines - I'd be interested to look at some of
the ones that include clientside rendering too.
On 12 March 2013 15:31, Casey Duncan [email protected] wrote:
I'm also curious what soured you on Jade. Can't be the significant
whitespace ;)—
Reply to this email directly or view it on GitHubhttps://github.com//issues/21#issuecomment-14810251
.
Peter Braden
from strider.
What about Bliss (https://github.com/cstivers78/bliss)? Is a javascript implementation of the asp.net razor view engine. Pretty easy.
from strider.
I personally don't like template engines that embed a language within another, the less logic the better imho.
On Mar 12, 2013, at 8:28 PM, Vinícius Gama [email protected] wrote:
What about Bliss (https://github.com/cstivers78/bliss)? Is a javascript implementation of the asp.net razor view engine. Pretty easy.
—
Reply to this email directly or view it on GitHub.
from strider.
you're talking about the way it uses javascript inside the view?
@function display(product) {
<li>@product.name ([email protected])</li>
}
<ul>
@products.forEach(display)
</ul>
from strider.
Right
On Mar 12, 2013, at 9:10 PM, Vinícius Gama [email protected] wrote:
you're talking about the way it uses javascript inside the view?
@function display(product) {
@product.name ([email protected]) }@products.forEach(display)
—
Reply to this email directly or view it on GitHub.
from strider.
Think swig makes the most sense. @peterbraden's argument is to use template inheritance for the nascent front-end extension system.
from strider.
We're now using swig. Fixed!
from strider.
Related Issues (20)
- Cancelled Deployment = Cannot Deploy Anything - UnhandledPromiseRejectionWarning HOT 2
- After upgrading to 2.0: Failed to load template: build-tpl.html HOT 6
- Modernizing the strider stack HOT 1
- Strider won't install HOT 6
- Strider can't access organisational repositories HOT 3
- Build fails: Cannot find type definition file for 'express-session' HOT 5
- Failed to lookup view HOT 9
- Deprecate strider.json merge_plugins option HOT 3
- 500 TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined HOT 4
- Audit calls to debug
- 500 TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined HOT 4
- Config to change default branch name HOT 1
- Installation instructions need updating HOT 2
- Fonts and ssl HOT 3
- [Feature Request] Add support for gitea SCM HOT 1
- screenshots are broken in wiki screenshots page HOT 1
- several vulnerabilities CVE-2020-15168,CVE-2020-7598 are introduced in strider HOT 1
- Unable to run scheduled jobs on Katalon Testops - Error: spawn git ENOENT
- Missing license HOT 1
- Same SPN usage in different projects - Azure DevOps HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from strider.