Module: importer

This is the importer interface

Methods

(inner) importFile(fullname, line) → {String}

importFile() reconstruct the import file path, and read it, unless it was already imported

Parameters:
Name Type Description
fullname String

name of file

line String

the import line command

Returns:
Type
String

(inner) isImported(fullname) → {Boolean}

isImported() checks if a file is already imported

Parameters:
Name Type Description
fullname String

name of file

Returns:
Type
Boolean

(inner) readFileLines(input) → {String}

readFileLines() reads a root file and parse all imports recursively

Parameters:
Name Type Description
input String

name of file to be read

Returns:
Type
String

(inner) splitPath(fullname) → {Array}

splitPath() get the path part of a full name

Parameters:
Name Type Description
fullname String

name of file

Returns:
Type
Array