mas cambios codex
This commit is contained in:
@@ -48,6 +48,9 @@ Hard rules for module files:
|
||||
- `hook.php` is for server-side logic
|
||||
- Do NOT embed `<script>` tags in `index-base.tpl`
|
||||
- Do NOT put PHP logic in `index-base.tpl`
|
||||
- `script.js` and `style.css` are static files: do NOT use Twig syntax inside them
|
||||
- Do NOT use `{{ ... }}`, `{% ... %}`, `c-if`, `c-for`, or builder attributes inside `script.js` or `style.css`
|
||||
- If JavaScript needs dynamic values such as `section_id` or a hook endpoint, expose them from `index-base.tpl` via `data-*` attributes
|
||||
|
||||
1. **Read style reference** (steps above)
|
||||
2. **`acai-write`** — Create the module files directly (`index-base.tpl`, `style.css`, `script.js`, optional `hook.php`) using project-relative paths and complete file contents.
|
||||
|
||||
Reference in New Issue
Block a user