module documentation
Module for pre-parsing user files in preparation for the parser Usage:
- from bootstraparse.modules.preparser import preparser
- pp = preparser(file, enviroment)
- pp.do_import() # imports all the modules and adds them to the file, do the same for all the files that are to be imported - # noqa
- pp.do_replacements() # replaces all images and shortcuts in the file
- pp.readlines() # returns the lines of ORIGINAL file
- pp.get_all_lines() # returns the lines of the file after replacements and imports
| Class | |
Takes a path and environment, executes all pre-parsing methods on the specified file. |