#Does anyone know which commit of mustache-zig to use mustache-zig

1 messages · Page 1 of 1 (latest)

cedar siren
#

It seems like the master branch, and two other recent commits from when 0.13 became current don't work (with different compile errors orginating from inside the .cache folder

zig fetch --save git+https://github.com/batiati/mustache-zig
zig fetch --save git+https://github.com/batiati/mustache-zig#ae5ecc1522da983dc39bb0d8b27f5d1b1d7956e3
zig fetch --save git+https://github.com/batiati/mustache-zig#4913f1ff3b5400da604258e9c40825c91d139889
#

Or is there another common template library for zig/zap work?

plush geode
#

what's the error you're getting? it might be intended for a different version of zig than you're using

cedar siren
#

Ive tried 3 different commits, they all return different errors. So I just gave up

#

I just then discovered that the zap zig library itself has a version of mustang in it, so you can just use the version that comes with zap.

chilly marsh
#

I've used it on zig-master without problems

cedar siren
chilly marsh
#

yea pretty sure its being developed against master

cedar siren
#

I assume so.

#

It seems common in zig world to not have branches for the most recent stable release.

#

Its honestly something I dont quite understand 🙂

#

I guess I am used to projects and libraries mostly using the most recent stable release

chilly marsh
#

i mean that one in particular has a big giant "Under Development" on the first page

#

as for others, its mostly because zig itself isn't "stable" yet - i.e. there are still breaking changes happening

#

people just pin to commit hashes

cedar siren
#

Yea, thats what I have been doing as well...

#

Its just a problem when some thigns work with dev branch and some things are 0.13 but not updated yet.

#

I'll get used to it 🙂

gusty hare
#

I also tried installing it and could not figure out how to, there is another templating engine called ZMPL(https://github.com/jetzig-framework/zmpl) that is used by JetZig(https://github.com/jetzig-framework/jetzig), it does not have intallation steps on the readme as well but on the jetzig build.zig it shows how to install the ZMPL lib

GitHub

Zmpl is a templating language written in Zig. Contribute to jetzig-framework/zmpl development by creating an account on GitHub.

#

I just ended up replacing the strings with this format: {{template}}, if you succeed on installing mustache try adding a installation guide to the projects readme, it would really help new zig users who want to use it