Fixed build script
Changed the build script in order to replace placeholders even if present multiple times
This commit is contained in:
parent
813c3245ee
commit
5996ee475c
@ -308,13 +308,13 @@ class FrontendBuilder(object):
|
|||||||
def replaceTemplatePlaceholders (self, pageTitle, copyright, css, code, jsLoadMode, version, versionType):
|
def replaceTemplatePlaceholders (self, pageTitle, copyright, css, code, jsLoadMode, version, versionType):
|
||||||
result = self.template()
|
result = self.template()
|
||||||
|
|
||||||
result = result.replace('@page.title@', pageTitle, 1)
|
result = result.replace('@page.title@', pageTitle)
|
||||||
result = result.replace('@copyright@', copyright, 1)
|
result = result.replace('@copyright@', copyright)
|
||||||
result = result.replace('@css@', css, 1)
|
result = result.replace('@css@', css)
|
||||||
#result = result.replace('@bookmarklet@', bookmarklet, 1)
|
#result = result.replace('@bookmarklet@', bookmarklet)
|
||||||
result = result.replace('@application.version@', version, 1)
|
result = result.replace('@application.version@', version)
|
||||||
result = result.replace('@application.version.type@', versionType, 1)
|
result = result.replace('@application.version.type@', versionType)
|
||||||
result = result.replace('@js_' + jsLoadMode + '@', code, 1)
|
result = result.replace('@js_' + jsLoadMode + '@', code)
|
||||||
|
|
||||||
result = re.sub('@js_[^@]+@', '', result)
|
result = re.sub('@js_[^@]+@', '', result)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user