relative_path variable to templates
fixed static file copying