-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Ghost already supports importing modules using the following syntax:
import { Example } from 'example'Adding an import function variant would allow developers to dynamically load in and assign values during runtime. For example, it would be possible to scan and auto-import a directory of ghost files:
files = scanDirectory('config')
for (file in files) {
const config = import(file)
// do something with "config"
}This would re-use the existing import keyword but would be invoked as a function.
Metadata
Metadata
Assignees
Labels
No labels