🎨 Little format of the code
This commit is contained in:
parent
4931c2021c
commit
86080d57cc
|
@ -40,7 +40,7 @@ var (
|
||||||
ScopeRead = Scope{uid: "read"}
|
ScopeRead = Scope{uid: "read"}
|
||||||
|
|
||||||
// This scope requests access to the user's default profile information
|
// 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
|
// NOTE(toby3d): https://indieauth.net/source/#profile-information
|
||||||
ScopeProfile = Scope{uid: "profile"}
|
ScopeProfile = Scope{uid: "profile"}
|
||||||
|
|
|
@ -80,9 +80,6 @@
|
||||||
{% endfunc %}
|
{% endfunc %}
|
||||||
|
|
||||||
{% func (p *BaseOf) T(format string, args ...interface{}) %}
|
{% func (p *BaseOf) T(format string, args ...interface{}) %}
|
||||||
{% code
|
{%s p.Printer.Sprintf(format, args...) %}
|
||||||
result := p.Printer.Sprintf(format, args...)
|
|
||||||
%}
|
|
||||||
{%s result %}
|
|
||||||
{% endfunc %}
|
{% endfunc %}
|
||||||
{% endcollapsespace %}
|
{% endcollapsespace %}
|
||||||
|
|
|
@ -280,40 +280,35 @@ func Template(p Page) string {
|
||||||
func (p *BaseOf) StreamT(qw422016 *qt422016.Writer, format string, args ...interface{}) {
|
func (p *BaseOf) StreamT(qw422016 *qt422016.Writer, format string, args ...interface{}) {
|
||||||
//line web/baseof.qtpl:82
|
//line web/baseof.qtpl:82
|
||||||
qw422016.N().S(` `)
|
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
|
//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{}) {
|
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)
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
||||||
//line web/baseof.qtpl:87
|
//line web/baseof.qtpl:84
|
||||||
p.StreamT(qw422016, format, args...)
|
p.StreamT(qw422016, format, args...)
|
||||||
//line web/baseof.qtpl:87
|
//line web/baseof.qtpl:84
|
||||||
qt422016.ReleaseWriter(qw422016)
|
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 {
|
func (p *BaseOf) T(format string, args ...interface{}) string {
|
||||||
//line web/baseof.qtpl:87
|
//line web/baseof.qtpl:84
|
||||||
qb422016 := qt422016.AcquireByteBuffer()
|
qb422016 := qt422016.AcquireByteBuffer()
|
||||||
//line web/baseof.qtpl:87
|
//line web/baseof.qtpl:84
|
||||||
p.WriteT(qb422016, format, args...)
|
p.WriteT(qb422016, format, args...)
|
||||||
//line web/baseof.qtpl:87
|
//line web/baseof.qtpl:84
|
||||||
qs422016 := string(qb422016.B)
|
qs422016 := string(qb422016.B)
|
||||||
//line web/baseof.qtpl:87
|
//line web/baseof.qtpl:84
|
||||||
qt422016.ReleaseByteBuffer(qb422016)
|
qt422016.ReleaseByteBuffer(qb422016)
|
||||||
//line web/baseof.qtpl:87
|
//line web/baseof.qtpl:84
|
||||||
return qs422016
|
return qs422016
|
||||||
//line web/baseof.qtpl:87
|
//line web/baseof.qtpl:84
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue