@noiob oh, yeah! are there any in particular you like..?

@thingywott I haven't used a lot of them and they all seem to use the same syntax, which is part of why they're cool

I've used Tera as a part of Zola and now twig, in php (without symfony)

@noiob oh yeah, they do seem to largely have similar ideas!

it's hard to say which i prefer the most. maybe liquid? (that's the thing jekyll uses, and you can pipe output between functions)

{{ user.name | capitalize | prepend: "Hello " }}

most of the stuff i've used recently is jsp with jstl, though jstl just tries to replace the code parts of the templates into tags that are interpreted serverside

<c:forEach var="thing" items="${bean.things}">
${thing.field}
</c:forEach>

@thingywott I didn't do anything too complex, I just love how readable and nice it makes the templates as opposed to piecing together the html manually in php

@noiob oh yeah, manually building html without templating is a nightmare and a half =w=

@thingywott that's how I learnt to do things, reading programming books for kids from the city library

my original code had everything in one file and people looked at it and went "ah yes, the oldschool way :D"

@noiob hee. that is, indeed the oldschool way

i used to do that too

@thingywott and honestly for a small project it's okay… it wasn't too hard to move to the "proper" way afterwards anyways

@thingywott but I'm super happy about how much I'm learning

Sign in to participate in the conversation
Awoo Space

Awoo.space is a Mastodon instance where members can rely on a team of moderators to help resolve conflict, and limits federation with other instances using a specific access list to minimize abuse.

While mature content is allowed here, we strongly believe in being able to choose to engage with content on your own terms, so please make sure to put mature and potentially sensitive content behind the CW feature with enough description that people know what it's about.

Before signing up, please read our community guidelines. While it's a very broad swath of topics it covers, please do your best! We believe that as long as you're putting forth genuine effort to limit harm you might cause – even if you haven't read the document – you'll be okay!