layout templating for angularjs