update
Former-commit-id: bdede6ed1b6f578f2ef046c338caf02d0b29d453 [formerly 7187de361b53e9c8ec121df379b762f2db736ea2] Former-commit-id: 447d58460fbbfd05ffe08428a1288e392637561d
This commit is contained in:
44
_embed/public/ace/demo/kitchen-sink/docs/velocity.vm
Normal file
44
_embed/public/ace/demo/kitchen-sink/docs/velocity.vm
Normal file
@@ -0,0 +1,44 @@
|
||||
#*
|
||||
This is a sample comment block that
|
||||
spans multiple lines.
|
||||
*#
|
||||
|
||||
#macro ( outputItem $item )
|
||||
<li>${item}</li>
|
||||
#end
|
||||
|
||||
## Define the items to iterate
|
||||
#set ( $items = [1, 2, 3, 4] )
|
||||
|
||||
<ul>
|
||||
## Iterate over the items and output the evens.
|
||||
#foreach ( $item in $items )
|
||||
#if ( $_MathTool.mod($item, 2) == 0 )
|
||||
#outputItem ($item)
|
||||
#end
|
||||
#end
|
||||
</ul>
|
||||
|
||||
<script>
|
||||
/*
|
||||
A sample function to decomstrate
|
||||
JavaScript highlighting and folding.
|
||||
*/
|
||||
function foo(items, nada) {
|
||||
for (var i=0; i<items.length; i++) {
|
||||
alert(items[i] + "juhu\n");
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
/*
|
||||
A sample style to decomstrate
|
||||
CSS highlighting and folding.
|
||||
*/
|
||||
.class {
|
||||
font-family: Monaco, "Courier New", monospace;
|
||||
font-size: 12px;
|
||||
cursor: text;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user