| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
This is an extension for hetu_script.
To load a script file from assets, add the script file's path into your pubspec.yaml like other assets.
The default folder is 'scripts/', directly under your project root.
assets:
- scripts/main.htThen those script will be pre-loaded by the new init method on Hetu class: [initFlutter].
You don't need to use old [init]. Also note that this is an async function.
You can load a asset script file by [evalFile] method:
final hetu = Hetu();
await hetu.initFlutter();
final result = hetu.evalFile('main.ht', invoke: 'main');| Back | FazBrowse Home | New Git URL |