This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
topic: The point of it all | |
I can sum it up here | |
I can say some more stuff | |
section: Stuff | |
And so on |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:xs="http://www.w3.org/2001/XMLSchema" | |
exclude-result-prefixes="xs" | |
version="2.0"> | |
<xsl:output indent="yes"/> | |
<xsl:variable name="f"> | |
<x g="green" n="1. Just green"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
self.defines = {'HOME': self.spfe_dirs['home'], | |
'SPFEOT_HOME': self.spfe_dirs['spfe_ot_home'], | |
'CONTENT_SET_BUILD_DIR': self.content_set_build_dir, | |
'CONTENT_SET_OUTPUT_DIR': self.content_set_output_dir, | |
'CONTENT_SET_BUILD_ROOT_DIR': self.content_set_build_root_dir | |
} | |
def _resolve_defines(self, string): | |
defines_pattern = re.compile('\$\{([^}]*)\}') | |
resolved = re.sub(defines_pattern, self._replace_defines, string) |