var _ = ishml.Template var data={person:[ {name:"Marta",possessive:"her",interest:"needlework"}, {name:"Pat",possessive:"their",interest:"boardgames"}, {name:"Jalisa",possessive:"her",interest:"boardgames"}, {name:"Edgar",possessive:"his",interest:"performing"}, {name:"Xong",possessive:"her",interest:"needlework"}, {name:"Lucy",possessive:"her",interest:"performing"}, ], hobby:[ {hobby:"knitting",interest:"needlework"},{hobby:"embroidery",interest:"needlework"},{hobby:"tatting",interest:"needlework"}, {hobby:"chess",interest:"boardgames"},{hobby:"checkers",interest:"boardgames"},{hobby:"pachisi",interest:"boardgames"}, {hobby:"dancing",interest:"performing"},{hobby:"singing",interest:"performing"},{hobby:"acting",interest:"performing"}, ]} var example1=_`${_.cycle(_.shuffle().first(3)).tag("person")} enjoys ${ _.pick(_().tag("hobby").concur((tags,item)=>item.interest===tags.person.data.interest))} in ${ tags=>tags.person.data.possessive} spare time.`.populate(data) var demo=function() { example1.say().replace("#paragraph1") }