haml-coffee
Version:
Haml templates where you can write inline CoffeeScript.
14 lines (10 loc) • 349 B
text/coffeescript
Node = require('./node')
{escapeQuotes} = require('../util/text')
# Text node that contains everything that cannot be detected as
# other node. This is normally plain text to be inserted into the
# template.
#
module.exports = class Text extends Node
# Evaluate the text node.
#
evaluate: -> @opener = @markText(escapeQuotes(@expression))