smarty.html 303 B

123456789101112131415161718192021222324252627
  1. <div>
  2. <{if($test):}>
  3. <{$test}>
  4. <{endif}>
  5. <ul>
  6. <{loop($data):}>
  7. <li>
  8. <{loop($v['child']):}>
  9. <{$v1['name']}>
  10. <{endloop}>
  11. </li>
  12. <{endloop}>
  13. <{foreach($data as $k => $v):}>
  14. <li>
  15. <{foreach($v['child'] as $k1 => $v1):}>
  16. <{$v1['name']}>
  17. <{endforeach}>
  18. </li>
  19. <{endforeach}>
  20. </ul>
  21. </div>