document.addEventListener('DOMContentLoaded',function(){
// var data = {
//     list: [
//         {name:' guokai', show: true},
//         {name:' benben', show: false},
//         {name:' dierbaby', show: true},
//         {age:'123'}
//     ],
//     blah: [
//         {num: 1},
//         {num: 2},
//         {num: 3, inner:[
//             {'time': '15:00'},
//             {'time': '16:00'},
//             {'time': '17:00'},
//             {'time': '18:00'}
//         ]},
//         {num: 4}
//     ]
// };

var data = {
	"info_list": [{
		"info_id": "FIN2016102500876403",
		"info_time": "2016-10-25",
		"link": " 2Fstatic 2Fetf_news 2F20161025 2FFIN2016102500876403 2FFIN2016102500876403_pc.shtml",
		"title": "前两轮人民币贬值引A股大跌 20这次不同？"
	}, {
		"info_id": "FIN2016102500823101",
		"info_time": "2016-10-25",
		"link": " 2Fstatic 2Fetf_news 2F20161025 2FFIN2016102500823101 2FFIN2016102500823101_pc.shtml",
		"title": "惊人相似的牛市能否重演？两角度对比把握深港通机遇"
	}, {
		"info_id": "FIN2016102500549904",
		"info_time": "2016-10-25",
		"link": " 2Fstatic 2Fetf_news 2F20161025 2FFIN2016102500549904 2FFIN2016102500549904_pc.shtml",
		"title": "恒大“准举牌” 20国民技术 20或跃升至第一大股东"
	}, {
		"info_id": "FIN2016102500573601",
		"info_time": "2016-10-25",
		"link": " 2Fstatic 2Fetf_news 2F20161025 2FFIN2016102500573601 2FFIN2016102500573601_pc.shtml",
		"title": "深港通新一轮全网测试本周末举行"
	}, {
		"info_id": "FIN2016102500497902",
		"info_time": "2016-10-25",
		"link": " 2Fstatic 2Fetf_news 2F20161025 2FFIN2016102500497902 2FFIN2016102500497902_pc.shtml",
		"title": "港股早报：大市突破关键点位 20市场活跃度再提升"
	}, {
		"info_id": "FIN2016102500205402",
		"info_time": "2016-10-25",
		"link": " 2Fstatic 2Fetf_news 2F20161025 2FFIN2016102500205402 2FFIN2016102500205402_pc.shtml",
		"title": "安哥拉取代俄罗斯成中国最大原油供应国"
	}, {
		"info_id": "FIN2016102500452701",
		"info_time": "2016-10-25",
		"link": " 2Fstatic 2Fetf_news 2F20161025 2FFIN2016102500452701 2FFIN2016102500452701_pc.shtml",
		"title": "证监会缩短重组期初显正面效果 20停牌3个月公司总数锐减"
	}]
}
console.log(data)
var tpl = document.getElementById('tpl').innerHTML;
var html = juicer(tpl, data);















},false);

// var fs = require('fs');
// var url = require('url');
// var info = fs.readFileSync('json/info.json');

// info = JSON.parse(info);
// console.log(typeof info)
var li =  document.querySelector('.infolist');

li.innerHTML = html;