/* Publish.js This script publish the blog post object to a static HTML into the webroot Require paramter: filepath //The filepath of the post object webroot //The webroot of the current ArozOS user */ requirelib("filelib"); includes("config.js"); //Inject content into template function inject(template, key, value){ template = template.split("{{" + key + "}}").join(value); return template; } //Main function to publish the file to webroot function publish(){ } publish();