@import controllers.*, foo.bar.* @extends(main)

# Test @@invoke

code | result
    @verbatim() {
    @invoke("Application.timestamp")
    }
| @invoke("Application.timestamp")
    @verbatim() {
    @invoke("controllers.Application.timestamp").cache(3)
    }
| @invoke("controllers.Application.timestamp").cache(3)
    @verbatim() {
    @{String sn = "facebook"}
    @invoke("foo.bar." + sn, new Date().getTime()).cache("3s")
    }
| @{String sn = "facebook"; long ts = new Date().getTime()} @invoke("foo.bar." + sn, ts).cache("3s")
    @verbatim() {
    @{String sn = "non_exists"}
    @invoke("foo.bar." + sn, new Date().getTime()).cache("3s").ignoreNonExistsTag()
    }
| @{sn = "non_exists"; ts = new Date().getTime()} @invoke("foo.bar." + sn, ts).cache("3s").ignoreNonExistsTag()

@include("tmpl_src")