Back to Editor Md

CodeMirror

lib/codemirror/mode/soy/index.html

1.5.0442 B
Original Source

Soy (Closure Template) mode

{namespace example} /** * Says hello to the world. */ {template .helloWorld} {@param name: string} {@param? score: number} Hello {$name}! {if $score} {$score} points {else} no score {/if} {/template} {template .alertHelloWorld kind="js"} alert('Hello World'); {/template}

A mode for Closure Templates (Soy).

MIME type defined: text/x-soy.