netlogix/eel-javascript
最新稳定版本:1.1.0
Composer 安装命令:
composer require netlogix/eel-javascript
包简介
Neos Eel Helper to embed inline JavaScript
README 文档
README
Neos Eel Helper to embed inline JavaScript from files.
Installation
composer require netlogix/eel-javascript
Usage
You can use the JavaScriptHelper in your Fusion files like this:
Scripts without Variables
To include scripts that don't require external variables, you can use the embed method.
script = ${Netlogix.JavaScript.embed('resource://Netlogix.Eel.JavaScript/Private/ScriptWithVars.js')}
Scripts with Variables
To include scripts that require external variables, you can use the embedWithVariables method.
scriptWithVars = ${Netlogix.JavaScript.embedWithVariables('resource://Netlogix.Eel.JavaScript/Private/ScriptWithVars.js', {'someVariableName': 'someValue'})}
This will prefix the included javascript file with the variables passed to the method:
var someVariable= 'someValue'; /// ... your script ScriptWithVars.js
统计信息
- 总下载量: 6.68k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-07-19