added more templating features, including conditional rendering, conditional checking, and conditional selection. also added error handling for failures