refactor partial, layout paths selection for #render
remove locals aliases in #render - (a,p) variables