added custom 'space' directive, along with files for templates