Skip to content

Outdated imports of variables from json file #2283

@tlylt

Description

@tlylt

Please confirm that you have searched existing issues in the repo

Yes, I have searched the existing issues

Any related issues?

#2270, #1407

Tell us about your environment

Windows 10

MarkBind version

Master branch

Describe the bug and the steps to reproduce it

A warning is being logged when running markbind serve/build on a new site (that you can generate via markbind init)

markbind-cli: warn: You have a variable with no name! This variable will be ignored.

This is because in our template, we are still using the deprecated way of importing variables from external json files.

image

This way has been removed in #1407 and the proper way should be the stated one in https://markbind.org/userGuide/reusingContents.html#importing-variables-from-other-external-file-formats

Expected behavior

  • Remove the template's use of variable import
    • Check that no such warning when running markbind build on a newly generated site
  • Fix the functional test cases if needed
    • Check that no such warning when running npm run test

Anything else?

No response

Metadata

Metadata

Assignees

Labels

c.Bug 🐛d.easyp.UrgentTo be done by next release, but follow normal release date

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions