Moved test files to testdata folder.

Changed the tests accordingly.
This commit is contained in:
Maxime
2015-07-23 09:35:46 +02:00
parent 2df30d186e
commit bc2feece4b
18 changed files with 18 additions and 9 deletions

View File

@ -0,0 +1,15 @@
---
title: Markdown test
variables:
sitename: A Caddy website
---
## Welcome on the blog
Body
``` go
func getTrue() bool {
return true
}
```

View File

@ -0,0 +1 @@
<h1>Header</h1>

View File

@ -0,0 +1,15 @@
---
title: Markdown test
variables:
sitename: A Caddy website
---
## Welcome on the blog
Body
``` go
func getTrue() bool {
return true
}
```

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<title>{{.Title}}</title>
</head>
<body>
{{.Include "header.html"}}
Welcome to {{.Var.sitename}}!
{{.Markdown}}
</body>
</html>