Fix broken Highlight test

This commit is contained in:
bep
2015-04-16 02:20:15 +02:00
parent be6a92c8b6
commit bee52f85ae
2 changed files with 2 additions and 9 deletions

View File

@@ -21,13 +21,7 @@ type Tmpl struct {
func (t *GoHTMLTemplate) EmbedShortcodes() {
t.AddInternalShortcode("ref.html", `{{ .Get 0 | ref .Page }}`)
t.AddInternalShortcode("relref.html", `{{ .Get 0 | relref .Page }}`)
t.AddInternalShortcode("highlight.html", `
{{ if len .Params | eq 2 }}
{{ highlight .Inner (.Get 0) (.Get 1) }}
{{ else }}
{{ highlight .Inner (.Get 0) "" }}
{{ end }}
`)
t.AddInternalShortcode("highlight.html", `{{ if len .Params | eq 2 }}{{ highlight .Inner (.Get 0) (.Get 1) }}{{ else }}{{ highlight .Inner (.Get 0) "" }}{{ end }}`)
t.AddInternalShortcode("test.html", `This is a simple Test`)
t.AddInternalShortcode("figure.html", `<!-- image -->
<figure {{ with .Get "class" }}class="{{.}}"{{ end }}>