/*jsl:import coherent*/ NIB('<%=name%>', { 'custom-view': VIEW({ ':root': coherent.View({ visibleBinding: 'controller.arrangedObjects.@count' }), 'img': coherent.Image({ srcBinding: 'controller.selection.href' }), 'p': coherent.View({ textBinding: 'controller.selection.caption' }), 'a.next': coherent.Anchor({ enabledBinding: 'controller.canSelectNext', target: 'controller', action: 'selectNext' }), 'a.prev': coherent.Anchor({ enabledBinding: 'controller.canSelectPrevious', target: 'controller', action: 'selectPrevious' }) }), 'data': NIB.asset('<%=name%>.json'), 'controller': coherent.ArrayController({ contentBinding: 'data.photos' }), 'owner': { view: '<%=name%>' } });