|
Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
|
Store a list of JS calls to insert at the end of the page. More...
Public Member Functions | |
| __construct ($page) | |
| Create new instance of mustache javascript helper. More... | |
| help ($text, Mustache_LambdaHelper $helper) | |
| Add the block of text to the page requires so it is appended in the footer. More... | |
Store a list of JS calls to insert at the end of the page.
| core\output\mustache_javascript_helper::__construct | ( | $page | ) |
Create new instance of mustache javascript helper.
| moodle_page | $page | Page. |
| core\output\mustache_javascript_helper::help | ( | $text, | |
| Mustache_LambdaHelper | $helper | ||
| ) |
Add the block of text to the page requires so it is appended in the footer.
The content of the block can contain further mustache tags which will be resolved.
| string | $text | The script content of the section. |
| Mustache_LambdaHelper | $helper | Used to render the content of this block. |