mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-03 03:37:52 +02:00
Update Html.php
This commit is contained in:
@@ -51,7 +51,7 @@ class Html
|
|||||||
*
|
*
|
||||||
* <code>
|
* <code>
|
||||||
*
|
*
|
||||||
* // Registering a Htmlk macro
|
* // Registering a Html macro
|
||||||
* Html::macro('my_element', function() {
|
* Html::macro('my_element', function() {
|
||||||
* return '<element id="monstra">';
|
* return '<element id="monstra">';
|
||||||
* });
|
* });
|
||||||
@@ -61,7 +61,7 @@ class Html
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* // Registering a Html macro with parameters
|
* // Registering a Html macro with parameters
|
||||||
* Html::macro('my_element', function(id = '') {
|
* Html::macro('my_element', function($id = '') {
|
||||||
* return '<element id="'.$id.'">';
|
* return '<element id="'.$id.'">';
|
||||||
* });
|
* });
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user