Parser constructor

Parser(
  1. LessOptions options
)

Normal Parser constructor, with less options

Implementation

Parser(LessOptions options) {
  context = Contexts.parse(options);

  if (options.banner.isNotEmpty) {
    try {
      banner = File(options.banner).readAsStringSync();
    } catch (_) {}
  }

  globalVars = options.globalVariables.isNotEmpty
      ? '${serializeVars(options.globalVariables)}\n'
      : '';
  modifyVars = options.modifyVariables.isNotEmpty
      ? '\n${serializeVars(options.modifyVariables)}'
      : '';
}