Name | 75 |URL | 76 |
77 |
78 |
87 |
88 | |
89 |
---|
Name | 116 |URL | 117 |
118 |
119 |
130 |
131 | |
132 |
---|
Walrss is open-source software that's licensed under the GNU AGPL v3.
43 | 44 | 45 | {% endfunc %} 46 | 47 | {% code type BasePage struct {} %} 48 | {% func (p *BasePage) Title() %}{% endfunc %} 49 | {% func (p *BasePage) HeadContent() %}{% endfunc %} 50 | 51 | {% func ProblemBox(p string) %} 52 |Walrss is open-source software that's licensed under the GNU AGPL v3.
71 | 72 | 73 | `) 74 | } 75 | 76 | func WriteRenderPage(qq422016 qtio422016.Writer, p Page) { 77 | qw422016 := qt422016.AcquireWriter(qq422016) 78 | StreamRenderPage(qw422016, p) 79 | qt422016.ReleaseWriter(qw422016) 80 | } 81 | 82 | func RenderPage(p Page) string { 83 | qb422016 := qt422016.AcquireByteBuffer() 84 | WriteRenderPage(qb422016, p) 85 | qs422016 := string(qb422016.B) 86 | qt422016.ReleaseByteBuffer(qb422016) 87 | return qs422016 88 | } 89 | 90 | type BasePage struct{} 91 | 92 | func (p *BasePage) StreamTitle(qw422016 *qt422016.Writer) { 93 | } 94 | 95 | func (p *BasePage) WriteTitle(qq422016 qtio422016.Writer) { 96 | qw422016 := qt422016.AcquireWriter(qq422016) 97 | p.StreamTitle(qw422016) 98 | qt422016.ReleaseWriter(qw422016) 99 | } 100 | 101 | func (p *BasePage) Title() string { 102 | qb422016 := qt422016.AcquireByteBuffer() 103 | p.WriteTitle(qb422016) 104 | qs422016 := string(qb422016.B) 105 | qt422016.ReleaseByteBuffer(qb422016) 106 | return qs422016 107 | } 108 | 109 | func (p *BasePage) StreamHeadContent(qw422016 *qt422016.Writer) { 110 | } 111 | 112 | func (p *BasePage) WriteHeadContent(qq422016 qtio422016.Writer) { 113 | qw422016 := qt422016.AcquireWriter(qq422016) 114 | p.StreamHeadContent(qw422016) 115 | qt422016.ReleaseWriter(qw422016) 116 | } 117 | 118 | func (p *BasePage) HeadContent() string { 119 | qb422016 := qt422016.AcquireByteBuffer() 120 | p.WriteHeadContent(qb422016) 121 | qs422016 := string(qb422016.B) 122 | qt422016.ReleaseByteBuffer(qb422016) 123 | return qs422016 124 | } 125 | 126 | func StreamProblemBox(qw422016 *qt422016.Writer, p string) { 127 | qw422016.N().S(` 128 |