This is a Coffee Parser Example.

The title of this page is: Coffee Parser Example

The capitlized title of this page is: COFFEE PARSER EXAMPLE

The capitlized title of this page is: COFFEE PARSER EXAMPLE

Click to view this page's source

src/nifty/coffee-parser.html.md.eco
--- coffee
(->
    capitalize = (str) -> str.toUpperCase()

    meta =
        layout: "default"
        title: "Coffee Parser Example"
    
    meta.capitalize = capitalize
    meta.titleCapitalized = capitalize meta.title

    meta
)()
---

This is a Coffee Parser Example.

The title of this page is: <%- @document.title %>

The capitlized title of this page is: <%- @document.capitalize @document.title %>

The capitlized title of this page is: <%- @document.titleCapitalized %>