Skip to content

Instantly share code, notes, and snippets.

@alienrobotwizard
Last active August 29, 2015 14:07
Show Gist options
  • Save alienrobotwizard/c032ecc4e9fc58e07b48 to your computer and use it in GitHub Desktop.
Save alienrobotwizard/c032ecc4e9fc58e07b48 to your computer and use it in GitHub Desktop.
Pig Node mustache template
<font point-size="12">
<table border="0" cellborder="1" cellspacing="0">
<tr>
<td bgcolor="{{step_type_color}}" colspan="{{join.relations.length}}{{^join.relations}}2{{/join.relations}}">
{{operation}}{{additional_info}}
</td>
</tr>
{{#expression}}
<tr><td colspan="{{join.relations.length}}{{^join.relations}}2{{/join.relations}}">{{expression}}</td></tr>
{{/expression}}
{{#storage_location}}
<tr><td colspan="{{join.relations.length}}{{^join.relations}}2{{/join.relations}}">{{storage_location}}</td></tr>
{{/storage_location}}
{{#storage_function}}
<tr><td colspan="{{join.relations.length}}{{^join.relations}}2{{/join.relations}}">{{storage_function}}</td></tr>
{{/storage_function}}
<tr>
<td bgcolor="#424242" colspan="{{join.relations.length}}{{^join.relations}}2{{/join.relations}}">
<font color="#FFFFFF">{{alias}}</font>
</td>
</tr>
{{#join}}
<tr>
{{#relations}}
<td bgcolor="#BCBCBC">{{.}}</td>
{{/relations}}
</tr>
{{#by}}
<tr>
{{#fields}}
<td bgcolor="#FFFFFF">{{.}}</td>
{{/fields}}
</tr>
{{/by}}
{{/join}}
{{#schema}}
<tr bgcolor="#FFFFFF">
{{#columns}}
<td bgcolor="#FFFFFF">{{alias}}</td><td bgcolor="#FFFFFF">{{type}}</td>
{{/columns}}
</tr>
{{/schema}}
</table>
</font>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment