mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
15 lines
474 B
Plaintext
15 lines
474 B
Plaintext
<c-var name="count" value="0"/>
|
|
|
|
<c-def function="foo(cacheName, cacheKey)">
|
|
<cached-fragment cache-key="$cacheKey" cache-name="$cacheName">
|
|
Count: ${count++}
|
|
</cached-fragment>
|
|
</c-def>
|
|
|
|
<c-invoke function="foo('cacheA', 'keyA')"/>
|
|
<c-invoke function="foo('cacheA', 'keyA')"/>
|
|
<c-invoke function="foo('cacheA', 'keyB')"/>
|
|
|
|
<c-invoke function="foo('cacheB', 'keyA')"/>
|
|
<c-invoke function="foo('cacheB', 'keyA')"/>
|
|
<c-invoke function="foo('cacheB', 'keyB')"/> |