Skip to content

Instantly share code, notes, and snippets.

Marten Gajda dmfs

Block or report user

Report or block dmfs

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
dmfs /
Last active Aug 29, 2015
A quick and dirty proof of concept to pre-process tags & templates in davwiki
from collections import defaultdict
from jinja2 import Environment, FileSystemLoader, Template
import json
import os
import re
# a pattern that matches tags in the form of
# <!-- --- tagname: tagvalue -->
simple_tag_pattern = re.compile('<!--\s*---\s*([^:\s]+):\s*(.*?)\s*-->', re.DOTALL)
You can’t perform that action at this time.