🎨 Little format of the code

This commit is contained in:
Maxim Lebedev 2022-02-02 22:52:52 +05:00
parent 4931c2021c
commit 86080d57cc
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
3 changed files with 18 additions and 26 deletions

View File

@ -40,7 +40,7 @@ var (
ScopeRead = Scope{uid: "read"}
// This scope requests access to the user's default profile information
// which include the following properties: name, `photo, url.
// which include the following properties: name, photo, url.
//
// NOTE(toby3d): https://indieauth.net/source/#profile-information
ScopeProfile = Scope{uid: "profile"}

View File

@ -80,9 +80,6 @@
{% endfunc %}
{% func (p *BaseOf) T(format string, args ...interface{}) %}
{% code
result := p.Printer.Sprintf(format, args...)
%}
{%s result %}
{%s p.Printer.Sprintf(format, args...) %}
{% endfunc %}
{% endcollapsespace %}

View File

@ -280,40 +280,35 @@ func Template(p Page) string {
func (p *BaseOf) StreamT(qw422016 *qt422016.Writer, format string, args ...interface{}) {
//line web/baseof.qtpl:82
qw422016.N().S(` `)
//line web/baseof.qtpl:83
qw422016.E().S(p.Printer.Sprintf(format, args...))
//line web/baseof.qtpl:83
qw422016.N().S(` `)
//line web/baseof.qtpl:84
result := p.Printer.Sprintf(format, args...)
//line web/baseof.qtpl:85
qw422016.N().S(` `)
//line web/baseof.qtpl:86
qw422016.E().S(result)
//line web/baseof.qtpl:86
qw422016.N().S(` `)
//line web/baseof.qtpl:87
}
//line web/baseof.qtpl:87
//line web/baseof.qtpl:84
func (p *BaseOf) WriteT(qq422016 qtio422016.Writer, format string, args ...interface{}) {
//line web/baseof.qtpl:87
//line web/baseof.qtpl:84
qw422016 := qt422016.AcquireWriter(qq422016)
//line web/baseof.qtpl:87
//line web/baseof.qtpl:84
p.StreamT(qw422016, format, args...)
//line web/baseof.qtpl:87
//line web/baseof.qtpl:84
qt422016.ReleaseWriter(qw422016)
//line web/baseof.qtpl:87
//line web/baseof.qtpl:84
}
//line web/baseof.qtpl:87
//line web/baseof.qtpl:84
func (p *BaseOf) T(format string, args ...interface{}) string {
//line web/baseof.qtpl:87
//line web/baseof.qtpl:84
qb422016 := qt422016.AcquireByteBuffer()
//line web/baseof.qtpl:87
//line web/baseof.qtpl:84
p.WriteT(qb422016, format, args...)
//line web/baseof.qtpl:87
//line web/baseof.qtpl:84
qs422016 := string(qb422016.B)
//line web/baseof.qtpl:87
//line web/baseof.qtpl:84
qt422016.ReleaseByteBuffer(qb422016)
//line web/baseof.qtpl:87
//line web/baseof.qtpl:84
return qs422016
//line web/baseof.qtpl:87
//line web/baseof.qtpl:84
}