Frontend path() added.

path() function calculates where the target .tpl file is stored,
instead of replicating code in fetchView() & addView()