added templates/blocks, templates/pages; modified render($type, $filename, $content);