mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Update examples in main README
This commit is contained in:
parent
644b2b4b23
commit
83837cb6b2
10
README.md
10
README.md
@ -121,17 +121,17 @@ syntax. Find out more about the [concise syntax here](http://markojs.com/docs/co
|
||||
```marko
|
||||
<!-- Marko HTML syntax -->
|
||||
<ul>
|
||||
<li for(color in ['a', 'b', 'c'])>
|
||||
${color}
|
||||
</li>
|
||||
<for|color| of=['a', 'b', 'c']>
|
||||
<li>${color}</li>
|
||||
</for>
|
||||
</ul>
|
||||
```
|
||||
|
||||
```marko
|
||||
// Marko concise syntax
|
||||
ul
|
||||
li for(color in ['a', 'b', 'c'])
|
||||
-- ${color}
|
||||
for|color| of=['a', 'b', 'c']
|
||||
li -- ${color}
|
||||
```
|
||||
|
||||
# Changelog
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user