example/morpher.nag in nagoro-2009.05 vs example/morpher.nag in nagoro-2013.03
- old
+ new
@@ -4,15 +4,15 @@
</head>
<body>
<?r list = [true, false, true] ?>
True items in list:
- <div for="cond in list">
+ <div foreach="cond in list">
<h1 if="cond">#{cond}</h1>
</div>
False items in list:
- <div for="cond in list">
+ <div foreach="cond in list">
<h1 unless="cond">#{cond}</h1>
</div>
Each item 3 times:
<div each="list">