Ractive Partials

testing partials in Ractive

by puneetsiet

HTML

<main>
   {{>thumbnail}}
</main>

<script id='thumbnail' type='text/ractive'>
 <div>
 	testing partials <ul>{{#datas}}<li>{{.}}</li>{{/datas}}</ul>
 </div> 
</script>

JavaScript

new Ractive({
  el : 'main',
  template: '#thumbnail',
    data: {
      datas: [1,2,3,4,5,6,7,8,9,0]
    },
    oninit: function() {
    
    },
    onrender: function() {
      
    }
});