-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwebook.py
49 lines (35 loc) · 911 Bytes
/
webook.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
## @file
## @brief Web Book platform demo
## @defgroup webook webook
## @ingroup dja
## @brief Web Book platform demo
## @{
from dja import *
MODULE = djModule('webook')
MODULE['URL'] = Url(
'https://repl.it/talk/ask/Who-knows-any-micro-contest-platform-for-newbies-in-programming/49019')
TITLE = Title('Web Book platform demo')
MODULE << TITLE
ABOUT = '''
%s
Demo web platform for newbies in programming runs over [Repl.it](https://repl.it) sandbox
* micro-contest rating subsystem
* programming cookbook making
* community blogging and modular tutorial writing
* Python/Django/PostgreSQL stack
* powered by `metaL`
''' % MODULE['URL'].val
MODULE['about'] = ABOUT
## `~/metaL/$MODULE` target directory for code generation
diroot = MODULE['dir']
## README
readme = README(MODULE)
diroot // readme
readme.sync()
# print(MODULE)
print(metaL('''
`che = module:`modan
# che.doc
'''))
REPL()
## @}