-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathclojure.py
61 lines (46 loc) · 1.3 KB
/
clojure.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
50
51
52
53
54
55
56
57
58
59
60
61
## @file
## @brief Clojure project template
from metaL import *
## @defgroup clojure
## @ingroup samples
## @brief Clojure project template
## @{
class cljFile(File):
def __init__(self, V):
super().__init__(V, ext='.clj', comment=';')
class cljModule(anyModule):
def __init__(self, V=None):
super().__init__(V)
self['clj'] = self.clj = cljFile(self)
self.diroot // self.clj
self.clj.sync()
def init_vscode_settings(self):
super().init_vscode_settings()
self.f11.val = 'make repl'
self.f12.val = 'exit()'
self.vscode.settings.sync()
def init_mk(self):
super().init_mk()
self.mk.mid // 'repl:\n\tlein repl'
self.mk.sync()
def init_apt(self):
super().init_apt()
self.apt // 'clojure leiningen'
self.apt.sync()
def init_vscode_ext(self):
super().init_vscode_ext()
self.vscode.ext.ext // '"avli.clojure",'
self.vscode.ext.sync()
MODULE = cljModule()
MODULE['TITLE'] = TITLE = Title('Clojure project template')
MODULE['ABOUT'] = ABOUT = '''
* [Clojure language](https://clojure.org/) workout
* helloWorld
* todo
* web portal
* metaL port
'''
MODULE['README'] = README = README(MODULE)
diroot = MODULE['dir'] // README
README.sync()
## @}