pythononwheels / pow_devel

development repo for PyhtonOnWheels framework
www.pythononwheels.org
MIT License
75 stars 10 forks source link

Make View Framework optional (Bootstrap4, SemanticUI) #26

Closed pythononwheels closed 5 years ago

pythononwheels commented 6 years ago

Semantic is great but more people prefer bootstrap since it is more widely used.

Bootstrap4 has switched from alpha to beta as of Aug 10th 2017. So this is the default option for the future.

separate the stubs and template files by extension Bootstrap = .bs4 semanticUI = .sui

after generating these will all be called .tmpl but include their correct templates which are still named base.bs4 vs base .sui

pythononwheels commented 5 years ago

Done. Use: generate_app -v option:

usage: generate_app.py [-h] -n NAME [-p PATH] [-f] [-u] [-v VIEW_TYPE]

optional arguments:
  -h, --help            show this help message and exit
  -n NAME, --name NAME  -n appname
  -p PATH, --path PATH  -p out_path
  -f, --force           force overwriting if invoked on existing app [default]
  -u, --update          Only update the Pow parts. Leaves everyathin in models
  -v VIEW_TYPE, --view VIEW_TYPE
                        set the default view framework. (semanticui = sui ||
                        bootstrap 4 = bs4 (default))