Recently I decided to fully redo my website with routing and templates. So far things have been going quite smooth and as of now I am using Pug for templates. What do you all use?
I usually don’t use templates, but what i would suggest is if you could add margins to the text.
Yeah, website is still being worked on right now. You could always help out!
I dunno how to code in Pug…
Pug is pretty neat:
HTML:
<h1>Hello!</h1>
Pug:
h1 Hello!
oh, how do i add tags? like:
<h1 style="color:red">
h1(style="color:red")
stylesheets?
I wanna make a pull request
ejs+vue, it’s holy.
I’ve heard a lot of good things about vue, would also consider using it.
Sure! Maybe increasing the margins could work.
Ya know, just add me to the repo
Vue alone isn’t great, but when paired with ejs, It’s a whole lotta awesomeness
Who would even use EJS when they’re already using Vue?
I like nunjucks. Pretty easy to use too.
And Handlebars. And Moustache. There’s a lot of options.
Uh, I just do I have my ways.
Agreed! There is a wide world of templates.
Auctally what is moustache? I’ve heard of handlebars but not that
I am working on a programming launguage in the last month, do u wanna try it?
Hello {{ World }}
uh i’m good no thanks.
Vue already has a templating engine built-in, why use EJS again? Plus, you’re actually kind of defeating Vue’s purpose.
I have my reasons lol ejs is giving vue some extra features, that vue doesn’t have. and those features, i often need.
Name them.
With a lot of these engines there is unofficial PHP support, which is quite neat. I was going to mess around with Stylus which is pretty much pug for CSS.
Inhales
ejs provides the ability to include files that can be manipulated while being written to the document, which is a very good functionality, and something vue doesn’t have, just one of the reasons i pair them together.
prob won’t make sense lol, but it does to meh
Ever heard of Vue components? And Vue components properties?
Vue allows you to create and include separate files that can be manipulated while being written to the document. You’re pretty much defining components there.
Yes. I have
FYI, those are the Vue “alternatives” for EJS.
I’m actually mad at you for dragging Vue down to the level of EJS, when it is actually in a high position like React.
bruh, ;-;
ever hear of this?
<%- vue_instance_here_that_is_manipulated_on_the_server_side %>
I’m actually confused, why would you use EJS when you can do a lot more with only Vue?
exactly I said I have my reasons lol,
Well it depends, if you’re building a SPA, then Vue alone can be hero,
though it’s not a templating engine.
There’s our answer lol
much better explained than i can put it @vrintle, thank you for sayin that.
Guess that wraps it up…
Well that was quite the debate
I’d say more me being yelled at because i pair vue with ejs.
Sorry gentlemen, for making this thread look bad. If you’ll excuse me, I have places to visit and people to see!
Yes I’ll still yell at you
I’ll say this one last time.
Vue is greater than EJS.
See ya on Discord!
OH GOD NO. Ahhhh ok, enough for me today, i’m supposed to be grounded, and u won’t see me on discord till meh grades are better.
Don’t worry, I don’t mind waiting
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.