-
Notifications
You must be signed in to change notification settings - Fork 1
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 #52 from webability-go/late-night
v1.1.0
- Loading branch information
Showing
21 changed files
with
819 additions
and
398 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module github.com/webability-go/xcore | ||
|
||
go 1.14 | ||
|
||
require golang.org/x/text v0.3.2 |
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,3 @@ | ||
golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs= | ||
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= | ||
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= |
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,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<language id="language-demo" lang="en"> | ||
<entry id="entry1">Welcome to</entry> | ||
<entry id="entry2">XCore</entry> | ||
</language> |
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,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<language id="language-demo" lang="es"> | ||
<entry id="entry1">Bienvenido a</entry> | ||
<entry id="entry2">XCore</entry> | ||
</language> |
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,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<language id="language-demo" lang="fr"> | ||
<entry id="entry1">Bienvenue à</entry> | ||
<entry id="entry2">XCore</entry> | ||
</language> |
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 @@ | ||
|
||
%-- This is a comment. It will not appear in the final code. This files is LF coded, not CRLF, as the string in test (unix end of line) --% | ||
Let's put your name here: {{clientname}}<br /> | ||
And lets put your hobbies here:<br /> | ||
%-- note the 1rst id is the entry into the data to inject and the second one is the name of the sub-template to use --% | ||
@@hobbies:hobby@@ | ||
%-- And you need the template for each hobby:--% | ||
[[hobby]] | ||
I love {{name}}<br /> | ||
[[]] |
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,37 @@ | ||
&&header&& | ||
&&body&& | ||
|
||
[[header]] | ||
Sports shop: | ||
[[]] | ||
|
||
[[body]] | ||
{{clientname}} Preferred hobby: | ||
&&:preferredhobby>sport:sport.&& %-- will build sport_ + [yes/no] contained into the sport field. Be sure you have a template for each value ! --% | ||
|
||
??preferredhobby>sport:sport?? | ||
|
||
[[sport.yes]]{{preferredhobby>name}} - It's a sport, sell him things![[]] | ||
[[sport.no]]{{preferredhobby>name}} - It's not a sport, recommend him next store.[[]] | ||
[[sport]]{{preferredhobby>name}} - We do not know that it is.[[]] | ||
|
||
@@hobbies:hobby@@ | ||
[[hobby.first]] | ||
1. {{name}} {{sport}} | ||
[[]] | ||
[[hobby.last]] | ||
last. {{name}} {{sport}} | ||
[[]] | ||
[[hobby.even]] | ||
2x. {{name}} {{sport}} | ||
[[]] | ||
[[hobby.key.3]] | ||
3. {{name}} {{sport}} | ||
[[]] | ||
[[hobby]] | ||
{{name}} {{sport}} | ||
[[]] | ||
[[hobby.none]] | ||
No hobbies | ||
[[]] | ||
[[]] |
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,3 @@ | ||
panicerror=Error crítico del sistema | ||
systemerror=Error del sistema | ||
fileerror=Error leyendo el archivo |
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,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<language id="errors" lang="es"> | ||
<entry id="panicerror">Error crítico del sistema</entry> | ||
<entry id="systemerror">Error del sistema</entry> | ||
<entry id="fileerror">Error leyendo el archivo</entry> | ||
</language> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.