Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- php land -->
- <?php
- foreach([1,2,3,4,5] as $i)
- {
- if( in_array($i, [1,3]) ) { echo '<div>'; }
- echo $i;
- if( in_array($i, [2,5]) ) { echo '</div>'; }
- }
- ?>
- <!-- vue land -->
- <template v-for="group in [[1,2], [3,4,5]]">
- <div>
- <template v-for="item in group">
- {{ item }}
- </template>
- </div>
- </template>
Add Comment
Please, Sign In to add comment