mirror of
https://github.com/jgthms/bulma
synced 2026-03-20 04:14:29 -07:00
Update variables include template
This commit is contained in:
@@ -15,17 +15,24 @@ function plugin() {
|
||||
return;
|
||||
}
|
||||
|
||||
const {file_name, lines} = utils.getLines(files, file_path);
|
||||
let variables = {
|
||||
by_name: {},
|
||||
list: [],
|
||||
file_path,
|
||||
};
|
||||
const {file_name, lines} = utils.getLines(files, file_path);
|
||||
|
||||
lines.forEach(line => {
|
||||
const variable = utils.parseLine(line);
|
||||
|
||||
if (variable != false) {
|
||||
variable.computed_value = utils.getComputedValue(variable.value, variable.type, initial_variables, derived_variables);
|
||||
const computed_data = utils.getComputedData(variable.value, variable.type, initial_variables, derived_variables);
|
||||
|
||||
if (Object.keys(computed_data).length > 0) {
|
||||
variable.computed_type = computed_data.computed_type;
|
||||
variable.computed_value = computed_data.computed_value;
|
||||
}
|
||||
|
||||
variables.by_name[variable.name] = variable;
|
||||
variables.list.push(variable.name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user