# Timmy [![Go Report Card](https://goreportcard.com/badge/github.com/arnaucode/timmy)](https://goreportcard.com/report/github.com/arnaucode/timmy)
web templating engine for static websites, written in Go lang
![timmy](https://raw.githubusercontent.com/arnaucode/timmy/master/timmy.png "timmy")
## Example
- Simple project structure example:
```
webInput/
index.html
templates/
userTemplate.html
userTemplate.json
```
- Set the html file:
```html
My First Heading
My first paragraph.
```
- Set the template file:
```html
{{username}}
{{description}}
{{phone}}
```
- Set the template data file:
```json
[{
"username": "Michaela Doe",
"description": "Hi, I'm here to code",
"phone": "456456456"
},
{
"username": "John Doe",
"description": "Hi, I'm here",
"phone": "123456789"
},
{
"username": "Myself",
"description": "How are you",
"phone": "no phone"
}
]
```
- Execute Timmy
```
./timmy
```
- Output:
```html
My First Heading
My first paragraph.
Michaela Doe
Hi, I'm here to code
456456456
John Doe
Hi, I'm here
123456789
Myself
How are you
no phone
```