ElementsCollection Class
Base class for the DocPad Elements Collection object Extends the DocPad collection class https://github.com/docpad/docpad/blob/master/src/lib/base.coffee#L72 Used as the base collection class for specific collection of file types. In particular metadata, scripts and styles.
Constructor
ElementsCollection
()
Methods
add
(
-
values
-
opts
Add an element to the collection. Right now we just support strings.
Parameters:
-
values
Arraystring array of values
-
opts
Object
toHTML
()
String
Create a way to output our elements to HTML
Returns:
String:
Properties
model
Object
Base Model for all items in this collection