Question

I've looked at Liquid and the like, but I cannot find a way to make a "one file" template that can handle all situations. I don't want to reinvent the wheel, but I will if I cannot find an existing solution.

The template system looks like this:

{block:Text}
    <li class="post text">
        {block:Title}
            <h3><a href="{Permalink}">{Title}</a></h3>
        {/block:Title}

        {Body}
    </li>
{/block:Text}
Was it helpful?

Solution

The answer I found is Mustache, which allows me to pretty closely mirror the templating of Tumblr. Far out.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top