def copytext_js(slug): """ Render COPY to copy.js. """ from static import copy_js response = copy_js(slug) js = response[0] with open('%s/www/js/copy.js' % env.static_path, 'w') as f: f.write(js)
def _copy_js(): return static.copy_js('theme')
def _copy_js(slug): return static.copy_js(slug)