Closure Templates is an actively used template language created in 2009.

10Years Old 749Users 0Jobs
  • Closure Templates ranks in the top 50% of languages
  • Closure Templates on github
  • Closure Templates first appeared in 2009
  • file extensions for Closure Templates include soy
  • I have 37 facts about Closure Templates. what would you like to know? email me and let me know how I can help.

Example code from the web:

/**
 * Says hello to the world.
 */
{template .helloWorld}
  Hello world!
{/template}

Example code from Linguist:

{namespace Exmaple}

/**
 * Example
 */
{template .foo}
  {@param count: string}
  {@param? name: int}

  {if isNonnull($name)}
    <h1>{$name}</h1>
  {/if}

  <div class="content">
    {switch count}
      {case 0}
        {call Empty.view}
          {param count: $count /}
        {/call}
      {default}
        <h2>Wow, so many!</h2>
    {/switch}
  </div>
{/template}

Trending Repos

repo stars description

Last updated December 10th, 2019

Edit Closure Templates