Dotty Documentation

0.5.0-bin-SNAPSHOT

trait Page
extends Object

[-] Constructors

[-] Members

[+] protected var _html : Option [ String ]
[+] protected var _yaml : Map [ String, AnyRef ]
[+] final lazy val content : String

String containing full unexpanded content of page

[+] protected def _html_= ( x$1: Option [ String ] ) : Unit
[+] protected def _yaml_= ( x$1: Map [ String, AnyRef ] ) : Unit
[+] def firstParagraph ( implicit ctx: Context ) : String

First paragraph of page extracted from rendered HTML

[+] def html ( implicit ctx: Context ) : Option [ String ]

HTML generated from page

[+] def includes : Map [ String, Include ]

Full map of includes, from name to contents

[+] protected def initFields ( implicit ctx: Context ) : Unit
[+] def params : Map [ String, AnyRef ]

Parameters to page

[+] def path : String

Path to template

[+] def sourceFile : SourceFile

SourceFile with contents of page

[+] private def updatedYaml ( newYaml: Map [ String, AnyRef ] ) : Map [ String, AnyRef ]

Takes "page" from params map in case this is a second expansion, and removes "layout" from the parameters if it exists. We don't want to preserve the layout from the previously expanded template

[+] protected def virtualFile ( subSource: String ) : SourceFile
[+] def yaml ( implicit ctx: Context ) : Map [ String, AnyRef ]

YAML front matter from the top of the file