carrot / tumblr-theme-parser

a Tumblr theme parser / compiler
GNU General Public License v3.0
28 stars 3 forks source link

Add support for meta tags containing interpolated values #4

Open notslang opened 9 years ago

notslang commented 9 years ago

For example, the following block should set the description of the page to the variable MetaDescription, but it actually sets the variable description to "{MetaDescription}" since meta tag parsing happens before everything else.

<html>
  <head>
    {block:Description}
    <meta name="description" content="{MetaDescription}"/>
    {/block:Description}
  </head>
</html>