-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Continue ClaroDocs's Migration to Using Closure Templates rather than…
… StringBuilder This rounds out the majority of the static html templating needs. This introduces some minor formatting issues, that I'll need to look deeper into the CSS in order to fix at some point.
- Loading branch information
1 parent
eb1d5ae
commit a5439a5
Showing
17 changed files
with
252 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
src/java/com/claro/module_system/clarodocs/html_rendering/contracts.soy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{namespace contracts} | ||
|
||
{template .contractDef} | ||
{@param name: string} | ||
{@param genericTypeParams: list<string>} | ||
{@param signatures: list<html>} | ||
|
||
{call codeblock.code} | ||
{param class: 'contract-def' /} | ||
{param id: '{$name}' /} | ||
{param codeContent kind="html"} | ||
{call tokens.CONTRACT /}{sp}{$name} | ||
{call tokens.LT /} | ||
{call utils.commaSep} | ||
{param elems: $genericTypeParams /} | ||
{/call} | ||
{call tokens.GT /} | ||
{sp}{lb} | ||
{for $sig in $signatures} | ||
{$sig} | ||
{/for} | ||
{rb} | ||
{/param} | ||
{/call} | ||
{/template} | ||
|
||
{template .contractImpl} | ||
{@param name: string} | ||
{@param genericTypeParams: list<html>} | ||
|
||
{call codeblock.code} | ||
{param class: 'contract-impl' /} | ||
{param id: '{$name}' /} | ||
{param codeContent kind="html"} | ||
{call tokens.IMPLEMENT /} {$name} {call tokens.LT /} | ||
{call utils.commaSep} | ||
{param elems: $genericTypeParams /} | ||
{/call} | ||
{call tokens.GT /}{call tokens.SEMICOLON /} | ||
{/param} | ||
{/call} | ||
{/template} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
src/java/com/claro/module_system/clarodocs/html_rendering/homepage/BUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
exports_files(["clarodocs.css"]) | ||
|
||
java_library( | ||
name = "homepage_html", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.