Rename template function
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
"""WordOps generic database creation module"""
|
||||
from sqlalchemy import create_engine
|
||||
from sqlalchemy.orm import scoped_session, sessionmaker
|
||||
from sqlalchemy.ext.declarative import declarative_base
|
||||
from sqlalchemy.orm import scoped_session, sessionmaker
|
||||
|
||||
from wo.core.variables import WOVariables
|
||||
|
||||
# db_path = self.app.config.get('site', 'db_path')
|
||||
|
||||
@@ -9,7 +9,8 @@ Render Templates
|
||||
|
||||
|
||||
class WOTemplate():
|
||||
def render(self, fileconf, template, data, overwrite=True):
|
||||
def deploy(self, fileconf, template, data, overwrite=True):
|
||||
"""Deploy template with render()"""
|
||||
data = dict(data)
|
||||
if (not os.path.isfile('{0}.custom'
|
||||
.format(fileconf))):
|
||||
|
||||
Reference in New Issue
Block a user