Questions tagged [erlydtl]

ErlyDTL compiles Django Template Language to Erlang bytecode.

ErlyDTL is an Erlang implementation of the Django Template Language. The erlydtl module compiles Django Template source code into Erlang bytecode. The compiled template has a render function that takes a list of variables and returns a fully rendered document.

https://github.com/erlydtl/erlydtl

4 questions
3
votes
0 answers

rebar3 doesnt compile erlydtl file

I have a problem which my rebar3 does not compile the erlydtl files (.dtl) and I have looking around for a while but not solution. Previously it worked, but after I upgrade erlang to the newest version, the *.dtl file is not compiled and…
Yarin Nim
  • 73
  • 3
1
vote
1 answer

Don't escape specific variable in ErlyDTL

ErlyDTL has an option auto_escape (which is set to true by default), which makes sure that all variables are escaped during rendering of the template. Is there a way not to escape a specific variable?
rpozarickij
  • 1,477
  • 3
  • 14
  • 27
0
votes
1 answer

Erlydtl Loading templates from directory.

Conviently place all templates into special directory and compile onсe. Now I writed own functions, for example so: make_templates(Dir)-> Files = filelib:wildcard(Dir++"/*.dtl"), compile(Files,0). compile([],_)->ok; compile([File|T],N)-> …
user4651282
0
votes
1 answer

How to create an erlydtl custom tag?

The docs say: "Starting with release 0.9.1, the recommended way to add custom tags and filters are to register a module" How does one register a module with erlydtl?
Andriy Drozdyuk
  • 58,435
  • 50
  • 171
  • 272