init settings
init templates directory