|
|
|
@ -147,16 +147,18 @@ def _index (_path,root):
|
|
|
|
|
f.write(_html)
|
|
|
|
|
f.close()
|
|
|
|
|
def _itheme(_path,_root,_name='default'):
|
|
|
|
|
_data = themes.Get(_name)[_name]
|
|
|
|
|
_themefolder = os.sep.join([_path,_root,'_assets','themes',_name])
|
|
|
|
|
if not os.path.exists(_themefolder) :
|
|
|
|
|
os.makedirs(_themefolder)
|
|
|
|
|
|
|
|
|
|
for _name in _data :
|
|
|
|
|
f = open(os.sep.join([_themefolder,_name+'.css']),'w')
|
|
|
|
|
f.write(_data[_name])
|
|
|
|
|
f.close()
|
|
|
|
|
pass
|
|
|
|
|
_path = os.sep.join([_path,_root])
|
|
|
|
|
themes.Get(_name, _path)
|
|
|
|
|
# _data = themes.Get(_name, _path)[_name]
|
|
|
|
|
# _themefolder = os.sep.join([_path,_root,'_assets','themes',_name])
|
|
|
|
|
# if not os.path.exists(_themefolder) :
|
|
|
|
|
# os.makedirs(_themefolder)
|
|
|
|
|
|
|
|
|
|
# for _name in _data :
|
|
|
|
|
# f = open(os.sep.join([_themefolder,_name+'.css']),'w')
|
|
|
|
|
# f.write(_data[_name])
|
|
|
|
|
# f.close()
|
|
|
|
|
# pass
|
|
|
|
|
def make (**_args) :
|
|
|
|
|
"""
|
|
|
|
|
This function create a project folder and within the folder are all the elements needed
|
|
|
|
|