Nothing really done, just puting a model and some example to start working
This commit is contained in:
Malphaet 2017-03-12 17:13:12 +01:00
parent af961b7266
commit 90a7abc8da
16 changed files with 106 additions and 1 deletions

View File

@ -1,2 +1,2 @@
# crocoweb
# vkyweb
General web generator

1
generator/__init__.py Normal file
View File

@ -0,0 +1 @@
__all__ = ["config","model","webengine"]

View File

@ -0,0 +1 @@
__all__ = []

View File

@ -0,0 +1 @@
__all__ = []

View File

View File

View File

@ -0,0 +1 @@
__all__ = []

View File

View File

View File

@ -0,0 +1 @@
__all__ = []

View File

@ -0,0 +1,11 @@
title_fr: Poésie
title_en: Poetry
category_en: Poetry
category_fr: Poésie
author_*: Max
__en__
Random poetry translated
__/en__
__fr__
Poésie traduite
__/fr__

View File

@ -0,0 +1,16 @@
title_*: Rose
author_*: Max
__en__
A Rose flew
Flower of beauty
Why are you
so pretty
__/en__
__fr__
Une rose qui passe
Quelle est bien belle
Mais pourquoi donc
Esceque tu est jolie
__/fr__

View File

@ -0,0 +1,7 @@
variable_that_will_be_accesible_in_the_whole_project: Very good
en_en: English
en_fr: Anglais
fr_fr: Français
fr_en: French
model: dual
generation: dynamic

View File

@ -0,0 +1,14 @@
title_fr: Premier article
title_en: First article
author_*: Max
date: 10/10/10
__fr__
Contenu
__/fr__
__en__
Content
__/en__
Lorem pict.

View File

@ -0,0 +1,40 @@
title_en: Transaltionus
title_fr: Traductionnator
author_en: Maximilian
author_fr: Maximilien
articles_en: List of articles
articles_fr: Liste des articles
category_en: List of categories
category_fr: Liste des catégories
legal_*: Copyleft (c) Cocobug
__en__
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
__/en__
__fr__
Loreme ipsume dolore site amete, consecteture adipisicinge elite, sede doe eiusmode tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolore ine reprehenderite ine voluptate velite esse cillume dolore eu fugiatte nulla pariature. Excepteure sinte occaecate cupidatate none proidente, sunta ine culpa qui officia deserunte mollite anime ide est laborume.
__/fr__
__*__
![Alt text](/path/to/img.jpg)
__/*__
__hidden__
Hiden text, can be used in many ways. Note that hidden is not a reserved keyword and is just treated separately in the generation process.
__/hidden__
__useless__
The useless keyword is not reserved either, and since it wont be treated in the generation process, it will just be lost
__/useless__
__error__
If you don't close properly something __a lot of content will be lost
__in the generation
process
__*__
Like this
__/*__

12
vkyweb.py Normal file
View File

@ -0,0 +1,12 @@
#!/usr/bin/env python
Copyleft (c) 2016 Cocobug All Rights Reserved.
import argparse
parser = argparse.ArgumentParser(description='Website on-the-fly & static generator')
subparsers = parser.add_subparsers(help='Commands')
# create the parser for the "a" command
parser_a = subparsers.add_parser('a', help='a help')
parser_a.add_argument('bar', type=int, help='bar help')