}
func (p *Page) String() string {
+ if p.Path() != "" {
+ return fmt.Sprintf("Page(%s)", p.Path())
+ }
return fmt.Sprintf("Page(%q)", p.title)
+
}
// Scratch returns the writable context associated with this Page.
// The relative path to this resource.
relTargetPath dirFile
- file string
-
// Base is set when the output format's path has a offset, e.g. for AMP.
base string
return l.sourceFilename
}
+func (l *genericResource) String() string {
+ return fmt.Sprintf("Resource(%s: %s)", l.resourceType, l.name)
+}
+
func (l *genericResource) Publish() error {
f, err := l.sourceFs().Open(l.AbsSourceFilename())
if err != nil {