Skip to content

Instantly share code, notes, and snippets.

@maxwellE
Created February 26, 2013 00:03
Show Gist options
  • Save maxwellE/5034553 to your computer and use it in GitHub Desktop.
Save maxwellE/5034553 to your computer and use it in GitHub Desktop.
example for jia
// ajax call
req = $.get('/get_assets',{company_id: $(this).dataset.company});
req.success(function(data){
JST['template name']
assets: data
})
//template call
<img src="{{it.assets.pic1}}"<img>
// click_event
$(this).dataSet.template_name
{
"template_name":"first",
"company": 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment