views:

958

answers:

3

Tumblr uses a very simple template language for it's themes:

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

        {Body}
    </li>
{/block:Text}

Start.io also uses the same format:

<html>
  <head>
    <title>{Name} @ start.io</title>
  </head>
  <body>
    {Groups}
      <h1>{Name}</h1>
      <ul>
      {Links}
        <li><a href="{Permalink}">{Title}</a></li>
      {/Links}
      </ul>
    {/Groups}
  </body>
</html>

Is it custom made, or does it use an existing template language?

If it's custom made, can you suggest some references for creating something similar?

+1  A: 

Hmm... I think it's custom made, since it isn't mentioned in the tumblr docs, which I suppose it would if they would use a existing template language.

JSON Template seems to be a fairly similar template language, though. Try it :)

moff
+1  A: 

These template engines appear custom-made, though they look extremely similar to Smarty.

Ron DeVera
+1  A: 

I recently published a PHP template engine that does exactly that. Get it from: https://www.ohloh.net/p/pheme

z7