// Code generated by qtc from "code.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. // The code layout. //line template/code.qtpl:2 package template //line template/code.qtpl:2 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) //line template/code.qtpl:2 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) //line template/code.qtpl:2 func StreamCode(qw422016 *qt422016.Writer, lang, data string) { //line template/code.qtpl:2 qw422016.N().S(` `) //line template/code.qtpl:3 streamlayout(qw422016, code_css(), code_scripts(lang), "", code_contents(lang, data), code_bodyscripts(lang)) //line template/code.qtpl:3 qw422016.N().S(` `) //line template/code.qtpl:4 } //line template/code.qtpl:4 func WriteCode(qq422016 qtio422016.Writer, lang, data string) { //line template/code.qtpl:4 qw422016 := qt422016.AcquireWriter(qq422016) //line template/code.qtpl:4 StreamCode(qw422016, lang, data) //line template/code.qtpl:4 qt422016.ReleaseWriter(qw422016) //line template/code.qtpl:4 } //line template/code.qtpl:4 func Code(lang, data string) string { //line template/code.qtpl:4 qb422016 := qt422016.AcquireByteBuffer() //line template/code.qtpl:4 WriteCode(qb422016, lang, data) //line template/code.qtpl:4 qs422016 := string(qb422016.B) //line template/code.qtpl:4 qt422016.ReleaseByteBuffer(qb422016) //line template/code.qtpl:4 return qs422016 //line template/code.qtpl:4 } //line template/code.qtpl:7 const prefix = "https://unpkg.com/prismjs" // The code scripts. //line template/code.qtpl:11 func streamcode_scripts(qw422016 *qt422016.Writer, lang string) { //line template/code.qtpl:11 qw422016.N().S(` `) //line template/code.qtpl:13 } //line template/code.qtpl:13 func writecode_scripts(qq422016 qtio422016.Writer, lang string) { //line template/code.qtpl:13 qw422016 := qt422016.AcquireWriter(qq422016) //line template/code.qtpl:13 streamcode_scripts(qw422016, lang) //line template/code.qtpl:13 qt422016.ReleaseWriter(qw422016) //line template/code.qtpl:13 } //line template/code.qtpl:13 func code_scripts(lang string) string { //line template/code.qtpl:13 qb422016 := qt422016.AcquireByteBuffer() //line template/code.qtpl:13 writecode_scripts(qb422016, lang) //line template/code.qtpl:13 qs422016 := string(qb422016.B) //line template/code.qtpl:13 qt422016.ReleaseByteBuffer(qb422016) //line template/code.qtpl:13 return qs422016 //line template/code.qtpl:13 } // The code bodyscripts. //line template/code.qtpl:16 func streamcode_bodyscripts(qw422016 *qt422016.Writer, lang string) { //line template/code.qtpl:16 qw422016.N().S(` `) //line template/code.qtpl:17 qw422016.N().S(``) //line template/code.qtpl:19 if lang != "" && lang != "none" { //line template/code.qtpl:19 qw422016.N().S(``) //line template/code.qtpl:21 } //line template/code.qtpl:22 qw422016.N().S(` `) //line template/code.qtpl:23 } //line template/code.qtpl:23 func writecode_bodyscripts(qq422016 qtio422016.Writer, lang string) { //line template/code.qtpl:23 qw422016 := qt422016.AcquireWriter(qq422016) //line template/code.qtpl:23 streamcode_bodyscripts(qw422016, lang) //line template/code.qtpl:23 qt422016.ReleaseWriter(qw422016) //line template/code.qtpl:23 } //line template/code.qtpl:23 func code_bodyscripts(lang string) string { //line template/code.qtpl:23 qb422016 := qt422016.AcquireByteBuffer() //line template/code.qtpl:23 writecode_bodyscripts(qb422016, lang) //line template/code.qtpl:23 qs422016 := string(qb422016.B) //line template/code.qtpl:23 qt422016.ReleaseByteBuffer(qb422016) //line template/code.qtpl:23 return qs422016 //line template/code.qtpl:23 } // The code css. //line template/code.qtpl:26 func streamcode_css(qw422016 *qt422016.Writer) { //line template/code.qtpl:26 qw422016.N().S(` `) //line template/code.qtpl:32 } //line template/code.qtpl:32 func writecode_css(qq422016 qtio422016.Writer) { //line template/code.qtpl:32 qw422016 := qt422016.AcquireWriter(qq422016) //line template/code.qtpl:32 streamcode_css(qw422016) //line template/code.qtpl:32 qt422016.ReleaseWriter(qw422016) //line template/code.qtpl:32 } //line template/code.qtpl:32 func code_css() string { //line template/code.qtpl:32 qb422016 := qt422016.AcquireByteBuffer() //line template/code.qtpl:32 writecode_css(qb422016) //line template/code.qtpl:32 qs422016 := string(qb422016.B) //line template/code.qtpl:32 qt422016.ReleaseByteBuffer(qb422016) //line template/code.qtpl:32 return qs422016 //line template/code.qtpl:32 } // The code contents. //line template/code.qtpl:35 func streamcode_contents(qw422016 *qt422016.Writer, lang, data string) { //line template/code.qtpl:35 qw422016.N().S(`
`)
//line template/code.qtpl:36
qw422016.E().S(data)
//line template/code.qtpl:36
qw422016.N().S(`
`)
//line template/code.qtpl:37
}
//line template/code.qtpl:37
func writecode_contents(qq422016 qtio422016.Writer, lang, data string) {
//line template/code.qtpl:37
qw422016 := qt422016.AcquireWriter(qq422016)
//line template/code.qtpl:37
streamcode_contents(qw422016, lang, data)
//line template/code.qtpl:37
qt422016.ReleaseWriter(qw422016)
//line template/code.qtpl:37
}
//line template/code.qtpl:37
func code_contents(lang, data string) string {
//line template/code.qtpl:37
qb422016 := qt422016.AcquireByteBuffer()
//line template/code.qtpl:37
writecode_contents(qb422016, lang, data)
//line template/code.qtpl:37
qs422016 := string(qb422016.B)
//line template/code.qtpl:37
qt422016.ReleaseByteBuffer(qb422016)
//line template/code.qtpl:37
return qs422016
//line template/code.qtpl:37
}