View Source Dragon.Template.Functions (dragon v1.1.1)

Helper functions for Dragon Templates.

Link to this section Summary

Link to this section Functions

TODO FOR path and canonical_path:

  • figure out how to handle markdown suffix conversion intelligently
  • peek into target file and see if it has layout/folder in @spec and drop index.html respectively
Link to this function

canonical_url(url, dest)

View Source
Link to this function

date(d, fmt \\ "%Y-%m-%dT%H:%M:%SZ")

View Source
Link to this function

datefrom(f, fmt \\ "%Y-%m-%dT%H:%M:%SZ")

View Source
Link to this function

include(path, args \\ [])

View Source