Auto action fix for rendering
Export template code if any actions exist; move template helper code to Action.js