Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
D
Donut
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mohamad.alturky
Donut
Commits
c5750c9d
Commit
c5750c9d
authored
Feb 24, 2024
by
mohamad.alturky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding readme
parents
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
README.md
README.md
+27
-0
No files found.
README.md
0 → 100644
View file @
c5750c9d
# DONUT – a framework for make your templates in go
one of the greatest principles in software design is
<b>
DRY
</b>
which stands for
don't repeat yourself
<table>
<tr>
<td><b>
@import {{
<b
style=
"color: rgb(27, 135, 202)"
>
packages
</b>
}}
</b></td>
<td>
here will be the go packages that we will use to run our remplate.
</td>
</tr>
<tr>
<td><b>
@tempalte {{
<b
style=
"color: rgb(27, 135, 202)"
>
target language code
</b>
}}
</b></td>
<td>
here will be the template code that will be as it in the code
</td>
</tr>
<tr>
<td><b>
@define {{
<b
style=
"color: rgb(27, 135, 202)"
>
global go functions and variables
</b>
}}
</b></td>
<td>
here will be the some utilites that we will use it in the template.
</td>
</tr>
<tr>
<td><b>
@exec {{
<b
style=
"color: rgb(27, 135, 202)"
>
code
</b>
}}
</b></td>
<td>
here will be the go code that we will run to generate the template.
</td>
</tr>
<tr>
<td><b>
@inject {{
<b
style=
"color: rgb(27, 135, 202)"
>
string expression
</b>
}}
</b></td>
<td>
here will be the local code that be injected directly in the final generated template.
</td>
</tr>
</table>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment