Commit 939eb1a7 authored by Betoule Marc's avatar Betoule Marc
Browse files

Implement the directive mecanism

parent 2921fc01
......@@ -62,6 +62,16 @@ class Repository:
return bool(self._ext_re.match(path.splitext(f)[1]))
def get_directive(Direct, seg):
c = self.get_code_string(seg)
d = Direct()
for l in c.splitlines():
except StopIteration():
return d
def get_all_string(self, seg):
""" Return the code string that should enter in the
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment