MCPcopy
hub / github.com/writefreely/writefreely / NewCollectionObj

Function NewCollectionObj

collections.go:678–683  ·  view source on GitHub ↗
(c *Collection)

Source from the content-addressed store, hash-verified

676}
677
678func NewCollectionObj(c *Collection) *CollectionObj {
679 return &CollectionObj{
680 Collection: *c,
681 Format: c.NewFormat(),
682 }
683}
684
685func (c *CollectionObj) ScriptDisplay() template.JS {
686 return template.JS(c.Script)

Callers 2

viewCollectionPostFunction · 0.85
newDisplayCollectionFunction · 0.85

Calls 1

NewFormatMethod · 0.80

Tested by

no test coverage detected