Create a tool for create html page with a file or one line
with a simple system of parse line and inheritance.
Many Framework demand to write the classic tag line for create
the page.
We suggest to delete the '<>' use for more comprehension and
more accessibility.
The inheritance is replace by '{}' and the tabulations and the level of
any block is create by the inline or not inline level.
- For command line user
- For the user don't want to write in Web languages -> Write a file with many specifics tags and the tool create the html file
Possibility to update a css file with css intructions Example :
- File(css) v1:
* {margin:auto;}
- File(css) v2:
* { margin:auto; }
- File(modification_file) :
* margin=10px|color=black
- result.css :
* { margin:10px; color:black; }
- Rules:
- Css file structure is like v1 or v2 in V1.8 section not another form
- Update and Create style Implementation
- Combine version to create tags and add content and style in the creation process
./htmlbuilder --ts --d
./htmlbuilder --ts --d page.html
./htmlbuilder --ts -c
./htmlbuilder --ts -c page.html
./htmlbuilder --ts -l "article;p"
./htmlbuilder --ts -l "article;p" page.html
./htmlbuilder --ts -f ../examples/build_lines
./htmlbuilder --ts -f ../examples/build_lines page.html
./htmlbuilder --mf --d page.html
./htmlbuilder --mf -c page.html
./htmlbuilder --mf -l "1p paragraphe" page.html
./htmlbuilder --mf -f ../examples/modif_lines page.html
./htmlbuilder --sy --d page.html style.css
./htmlbuilder --sy -c page.html style.css
./htmlbuilder --sy -l "1p id=ID" page.html style.css
./htmlbuilder --sy -f ../style_lines page.html style.css
./htmlbuilder --usy -f ../examples/update_style ../examples/style_inh.css
Test: ->NB : {option1/option2}=correct options
make test OPT0=--{ts/mf/sy/usy} OPT1=-{-d/c/l/f} ARG1={""/p.html/"line"/file} ARG2={""/p.html} ARG3={""/s.css}
Others tests:
- testconstruction
make test OPT0=--ts OPT=-{-d/c/l/f} ARG1={""/p.html/"line"/file} ARG2={""/p.html}
- testmodifcation
make test OPT0=--mf OPT=-{-d/c/l/f} ARG1={""/p.html/"line"/file} ARG2={""/p.html}
- testmodifcationstyle
make test OPT0=--sy OPT=-{-d/c/l/f} ARG1={""/p.html/"line"/file} ARG2={""/p.html} ARG3={""/s.css}
- testupdatestyle
make test OPT0=--usy OPT={-d/c/l/f} ARG1={file} ARG2={s.css}
Examples:
make testconstruction OPT=-l ARG1="article\;p" ARG2=../test/page.html
make testmodification OPT=-f ARG1=../examples/modif_lines ARG2=../examples/page.html
make testmodification OPT=-l ARG1="1p paragraphe\;1span spa" ARG2=../examples/page.html
make testmodificationstyle OPT=-f ARG1=../examples/style_lines ARG2=../examples/page.html ARG3=../examples/style.css
make testmodificationstyle OPT=-l ARG1="1p id=ID\|class=classe\;1span class=classe" ARG2=../examples/page.html ARG3=../examples/style.css
make testupdatestyle OPT=-f ARG1=../examples/update_style ARG2=../examples/style_inh.css