Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
LlamaMan8745yI don't see why something like this would be better than vue or angularjs. If the goal was to prove something to yourself, I guess there is nothing wrong with it (been there personally, had chronic not-invented-here-syndrome).
-
@alexbrooklyn @LlamaMan
It's better because it's 30 lines. And I'm not distributing it as a framework. This is mine. -
@LlamaMan you do realize that vue and angular are not templating frameworks and they both depend on something like mustache, right?
-
@LlamaMan between an extensible single page application framework and a templating engine? Are you mainly backend?
-
LlamaMan8745y@ganjaman not really. Is it like the difference between something like ejs and spa framewoks? The screenshot from @AlgoRythm seemed like it was from a spa environment.
-
@ganjaman "Are you mainly backend" is the single most savage burn I have every read.
-
@arcsector Muchos gracias, my backend isn't python and, again, this is completed in 30 lines.
-
@pez-dispenser That's the first time I've heard of it. I'll implement that instead.
-
@MacDev It's going into a larger project, if you want the link for that. Multiplayer Pokemon that I'm lazily developing and will probably abandon.
-
HTML Supports HTML templates. No Need for another templating engine.
PS, the smallest templating engine possible for js also already exists
Maybe two days ago I expressed interest in creating a dynamic HTML templating system.
Here's what I came up with. template.js only 34 lines. Which is great because JS is ugly and I want the least amount of it as possible.
The idea is you can create hiddent templates, modify them using traditional means (HTML/ CSS), then generate an infinite amount of them in JS.
Btw: Screenshot is two different images stitched together. There isn't JS and HTML in the same place.
rant