You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cms/index.py

194 lines
5.5 KiB
Python

2 years ago
__doc__ = """
arguments :
--config path of the configuration otherwise it will look for the default in the working directory
"""
from flask import Flask,render_template,send_from_directory,request
import flask
import transport
from transport import providers
import cms
import sys
import os
import json
import copy
# e = Environment(loader=BaseLoader()).from_string(_html)
# e = cms.components.context(_config).from_string(_html)
# _args['index'] = e.render(**_args)
2 years ago
# return _html
2 years ago
"""
return the content of a folder formatted for a menu
"""
global _config
_uri = os.sep.join([_config['layout']['root'],request.headers['uri']])
_id = request.headers['dom']