-
-
Notifications
You must be signed in to change notification settings - Fork 542
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add support for templ * Remove file extension `tpl` (conflict with Pan) * Add quotes and important_syntax * Update readme * Add test for templ
- Loading branch information
Showing
3 changed files
with
33 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -539,6 +539,7 @@ SystemVerilog | |
Slint | ||
Tact | ||
Tcl | ||
Templ | ||
Tex | ||
Text | ||
Thrift | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// 24 lines, 13 code, 8 comments, 3 blanks | ||
package test | ||
|
||
templ Foo() { | ||
<div id="bar"> | ||
<!-- | ||
HTML comments are also allowed. | ||
--> | ||
<button class={ button() } onClick={ doSomething() }>Baz</button> | ||
</div> | ||
} | ||
|
||
/* | ||
some css class. | ||
*/ | ||
css button() { | ||
padding: 7px; | ||
border-radius: 5px; | ||
} | ||
|
||
// doSomething does something | ||
script doSomething() { | ||
alert("something") | ||
} |