379 break |
379 break |
380 # else - next iteration |
380 # else - next iteration |
381 |
381 |
382 def __getHtml(self, language, text, ssiEnabled, filePath, rootPath): |
382 def __getHtml(self, language, text, ssiEnabled, filePath, rootPath): |
383 """ |
383 """ |
384 Private method to process the given text depending upon the given language. |
384 Private method to process the given text depending upon the given |
|
385 language. |
385 |
386 |
386 @param language language of the text (string) |
387 @param language language of the text (string) |
387 @param text to be processed (string) |
388 @param text to be processed (string) |
388 @param ssiEnabled flag indicating to do some (limited) SSI processing (boolean) |
389 @param ssiEnabled flag indicating to do some (limited) SSI processing |
|
390 (boolean) |
389 @param filePath file path of the text (string) |
391 @param filePath file path of the text (string) |
390 @param rootPath root path to be used for SSI processing (str) |
392 @param rootPath root path to be used for SSI processing (str) |
|
393 @return processed HTML text (string) |
391 """ |
394 """ |
392 if language == "HTML": |
395 if language == "HTML": |
393 if ssiEnabled: |
396 if ssiEnabled: |
394 return self.__processSSI(text, filePath, rootPath) |
397 return self.__processSSI(text, filePath, rootPath) |
395 else: |
398 else: |