Whats your favorite templating engine?

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.

1 Like

Yeah, website is still being worked on right now. You could always help out!

1 Like

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")

2 Likes

stylesheets?
I wanna make a pull request

ejs+vue, it’s holy.

2 Likes

I’ve heard a lot of good things about vue, would also consider using it.

2 Likes

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

3 Likes

Who would even use EJS when they’re already using Vue?

1 Like

I like nunjucks. Pretty easy to use too.

2 Likes

And Handlebars. And Moustache. There’s a lot of options.

1 Like

Uh, I just do I have my ways.

Agreed! There is a wide world of templates.

2 Likes

Auctally what is moustache? I’ve heard of handlebars but not that

2 Likes

I am working on a programming launguage in the last month, do u wanna try it? :laughing:

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.

1 Like

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.

1 Like

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.

1 Like

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.

2 Likes

There’s our answer lol

much better explained than i can put it @vrintle, thank you for sayin that.

3 Likes

Guess that wraps it up…

1 Like

Well that was quite the debate

1 Like

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!

2 Likes

Yes I’ll still yell at you :stuck_out_tongue_winking_eye:

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 :wink:

2 Likes

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.