Commit c5750c9d authored by mohamad.alturky's avatar mohamad.alturky

adding readme

parents
# 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>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment