added smarty support
changed php/html-mix to php and seperate template