Added render function for poor man's template functionality