"Handlebars"의 두 판 사이의 차이

오픈소스 비즈니스 컨설팅
둘러보기로 가기 검색하러 가기
잔글
잔글
3번째 줄: 3번째 줄:
  
  
*Site : 
+
*Site : 
 
*Manual
 
*Manual
**https://zordius.github.io/HandlebarsCookbook/
+
**[https://zordius.github.io/HandlebarsCookbook/ https://zordius.github.io/HandlebarsCookbook/]
 
*License
 
*License
  
16번째 줄: 16번째 줄:
 
{{#each domains}}
 
{{#each domains}}
 
   Map : {{@key}}, {{this}}
 
   Map : {{@key}}, {{this}}
   List : {{index}}, {{this}}
+
   List : {{@index}}, {{this}}
 
{{/each}}
 
{{/each}}
  
22번째 줄: 22번째 줄:
  
 
</pre>
 
</pre>
 
 
== 참고 문헌 ==
 
== 참고 문헌 ==
  
 
*[http://programmingsummaries.tistory.com/381 http://programmingsummaries.tistory.com/381]
 
*[http://programmingsummaries.tistory.com/381 http://programmingsummaries.tistory.com/381]

2016년 11월 11일 (금) 15:22 판

handlebars JavaScript Library를 정리 한다.



사용법

<script id="domain_list_content" type="text/x-handlebars-template">
{{#if debug}}<th>Links</th>{{else}} ~ {{/if}}

{{#each domains}}
    Map : {{@key}}, {{this}}
    List : {{@index}}, {{this}}
{{/each}}

{{#each users as |user userId|}} 

참고 문헌