Ruby objects
All haml files can access some properties or method. All is not very unified for now, but it works and will be improve in the futur.
This is the main properties in haml files:
name
: file name@contents
: global propertiesconfig
: yaml of the configuration filelist
: all postslist_lasts(number)
: maxnumber
postslist_by_date
: all posts by year, month, dayaccount?(name)
: check the presence of an accountname
in the configurationaccount(name)
: value of the accountname
in the configurationtag
: current tag, intags.haml
urls
: all urls of pages and posts
link_to(url)
: generate an absolute url using configurationgravatar?
: check the presence of an email to display gravatorgravatar
: gravatar urlpublished?
: check the presence ofpublished
parameterpublished
: value of thepublished
parameter ortrue
date
: date, for a post<...>?
: check the presence of<...>
in the header<...>
: value of<...>
in the header@scope
: similar parameters but specificaly for the markdown content. It allows to access this header and the haml headercontent
: html content to add (generated from the markdown or the haml)