mirror of
https://github.com/caddyserver/caddy.git
synced 2025-06-04 03:00:47 +08:00
Moved test files to testdata folder.
Changed the tests accordingly.
This commit is contained in:
15
middleware/markdown/testdata/blog/test.md
vendored
Normal file
15
middleware/markdown/testdata/blog/test.md
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
---
|
||||
title: Markdown test
|
||||
variables:
|
||||
sitename: A Caddy website
|
||||
---
|
||||
|
||||
## Welcome on the blog
|
||||
|
||||
Body
|
||||
|
||||
``` go
|
||||
func getTrue() bool {
|
||||
return true
|
||||
}
|
||||
```
|
1
middleware/markdown/testdata/header.html
vendored
Normal file
1
middleware/markdown/testdata/header.html
vendored
Normal file
@ -0,0 +1 @@
|
||||
<h1>Header</h1>
|
15
middleware/markdown/testdata/log/test.md
vendored
Normal file
15
middleware/markdown/testdata/log/test.md
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
---
|
||||
title: Markdown test
|
||||
variables:
|
||||
sitename: A Caddy website
|
||||
---
|
||||
|
||||
## Welcome on the blog
|
||||
|
||||
Body
|
||||
|
||||
``` go
|
||||
func getTrue() bool {
|
||||
return true
|
||||
}
|
||||
```
|
11
middleware/markdown/testdata/markdown_tpl.html
vendored
Normal file
11
middleware/markdown/testdata/markdown_tpl.html
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>{{.Title}}</title>
|
||||
</head>
|
||||
<body>
|
||||
{{.Include "header.html"}}
|
||||
Welcome to {{.Var.sitename}}!
|
||||
{{.Markdown}}
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user