-
-
Notifications
You must be signed in to change notification settings - Fork 280
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support build tags by copying template header over (#688)
- Loading branch information
Showing
11 changed files
with
133 additions
and
151 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 |
---|---|---|
@@ -1 +1 @@ | ||
0.2.663 | ||
0.2.664 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
-- in -- | ||
package goof | ||
|
||
templ Hello() { | ||
Hello | ||
} | ||
|
||
-- out -- | ||
package goof | ||
|
||
templ Hello() { | ||
Hello | ||
} |
14 changes: 14 additions & 0 deletions
14
parser/v2/testdata/templatefile_can_start_with_comments.txt
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,14 @@ | ||
-- in -- | ||
// Go comment | ||
package goof | ||
|
||
templ Hello() { | ||
Hello | ||
} | ||
-- out -- | ||
// Go comment | ||
package goof | ||
|
||
templ Hello() { | ||
Hello | ||
} |
16 changes: 16 additions & 0 deletions
16
parser/v2/testdata/templatefile_can_start_with_comments_and_whitespace.txt
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,16 @@ | ||
-- in -- | ||
// Go comment | ||
|
||
package goof | ||
|
||
templ Hello() { | ||
Hello | ||
} | ||
-- out -- | ||
// Go comment | ||
|
||
package goof | ||
|
||
templ Hello() { | ||
Hello | ||
} |
20 changes: 20 additions & 0 deletions
20
parser/v2/testdata/templatefile_can_start_with_multiline_comments_and_whitespace.txt
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,20 @@ | ||
-- in -- | ||
/******************** | ||
* multiline message * | ||
********************/ | ||
|
||
package goof | ||
|
||
templ Hello() { | ||
Hello | ||
} | ||
-- out -- | ||
/******************** | ||
* multiline message * | ||
********************/ | ||
|
||
package goof | ||
|
||
templ Hello() { | ||
Hello | ||
} |
32 changes: 32 additions & 0 deletions
32
parser/v2/testdata/templatefile_can_start_with_multiple_comments_and_whitespace.txt
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,32 @@ | ||
-- in -- | ||
// Go comment | ||
|
||
/* Multiline comment on a single line */ | ||
|
||
/* | ||
|
||
Multi-line comment on multiple lines | ||
|
||
*/ | ||
|
||
package goof | ||
|
||
templ Hello() { | ||
Hello | ||
} | ||
-- out -- | ||
// Go comment | ||
|
||
/* Multiline comment on a single line */ | ||
|
||
/* | ||
|
||
Multi-line comment on multiple lines | ||
|
||
*/ | ||
|
||
package goof | ||
|
||
templ Hello() { | ||
Hello | ||
} |
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,10 @@ | ||
-- in -- | ||
//go:build dev | ||
|
||
package p | ||
|
||
-- out -- | ||
//go:build dev | ||
|
||
package p | ||
|
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