Mustache.ex icon indicating copy to clipboard operation
Mustache.ex copied to clipboard

Mustache templates for Elixir

Results 12 Mustache.ex issues
Sort by recently updated
recently updated
newest added

I needed this to enable basic conditionals. `I feel {{#feeling}}much {{feeling}} for {{/feeling}}you.` Tried to only ad formatting updates on lines that I had to change.

Besides other documentation changes, this commit ensures the generated HTML doc for HexDocs.pm will become the source of truth for this Elixir library and leverage on latest features of ExDoc.

Right now, the API documentation looks rather sparse: https://hexdocs.pm/mustache/api-reference.html See https://yos.io/2016/04/28/writing-and-publishing-elixir-libraries/ for instructions

``` warning: String.strip/1 is deprecated. Use String.trim/1 instead Found at 3 locations: lib/mustache.ex:23: Mustache.double_mustaches/2 lib/mustache.ex:26: Mustache.double_mustaches/2 lib/mustache.ex:104: Mustache.triple_mustaches/2 ``` and ``` warning: String.strip/1 is deprecated. Use String.trim/1 instead test/mustache_integration_test.exs:45: MustacheTest."test...

I am using your library as a dependency in a personal project, and thought of committing this change to resolve some build warnings. ``` ==> mustache Compiling 1 file (.ex)...

Hey I did some performance testing. I am using it in this project https://github.com/straw-hat-team/straw_hat_mailer, so I dont know if you want to dig in in this huge different.

I have this test ```elixir template_attrs = %{ # notice here how I print `partials.marketing_text` html_body: "Welcome {{data.username}}!, enjoy a good reputation, {{partials.marketing_text}}", text_body: "Welcome {{data.username}}!, enjoy a good reputation,...

I'm building a [Base16 builder in Elixir](https://github.com/obahareth/base16-builder-elixir) and I've come across a case where rendering is failing with no errors. Here's my test case: ```elixir defmodule TestMustache do def test_mustache()...

I found another library like this, maybe you could co-operate: https://github.com/h4cc/awesome-elixir#templating