How can I pass a Leaf tag to another Leaf tag?

Is there a way to pass a Leaf tag to another Leaf tag? For example, in my normal Leaf tag, I am returning some html code:

public func run(
        tagTemplate: TagTemplate,
        arguments: ArgumentList) throws -> Node? {

        return .bytes("<span>#(foo)</span>".bytes)
}

      

but in my template it #(foo)

appears as plain text and not as Leaf tag whereas html tags <span></span>

are working correctly.

+3


source to share





All Articles