Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from webability-go/late-night
patch v0.0.5
- Loading branch information
Showing
16 changed files
with
232 additions
and
367 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package wajaf | ||
|
||
type Application NodeDef | ||
|
||
func NewApplication(id string) Application { | ||
|
||
app := NewNode("application", "") | ||
app.SetID(id) | ||
|
||
app.RegisterKnownAttributes([]string{"id", "enforce", "style"}) | ||
app.RegisterKnownChildren([]string{"container", "element"}) | ||
|
||
return app | ||
} |
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,11 @@ | ||
package wajaf | ||
|
||
type Event NodeDef | ||
|
||
func NewEvent(name string, value string) Event { | ||
|
||
e := NewNode("event", name) | ||
e.SetData(value) | ||
|
||
return e | ||
} |
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 @@ | ||
package wajaf | ||
|
||
type Help NodeDef | ||
|
||
func NewHelp(tooltip string, title string, description string) Help { | ||
|
||
e := NewNode("help", "") | ||
e.AddMessage("summary", tooltip) | ||
e.AddMessage("title", title) | ||
e.AddMessage("description", description) | ||
|
||
return e | ||
} |
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,11 @@ | ||
package wajaf | ||
|
||
type Message NodeDef | ||
|
||
func NewMessage(name string, value string) Message { | ||
|
||
e := NewNode(name, "") | ||
e.SetData(value) | ||
|
||
return e | ||
} |
Oops, something went wrong.