Skip to content

Commit 1b3eb9a

Browse files
committed
2 parents a828414 + 41e0e4a commit 1b3eb9a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

readme.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ use LeviZwannah\Php2html\Facades\Html as H;
1414
1515
H::div()
1616
::p()::_id("p1")
17-
::text("Hello PHP2HTML From Paragraph")
18-
::b()::text("A Bold Text")::b(1)
17+
::__text("Hello PHP2HTML From Paragraph")
18+
::b()::__text("A Bold Text")::b(1)
1919
::p(1)
2020
::div(1)
2121
@@ -28,16 +28,16 @@ H::div()
2828
## HTML Attributes
2929
Use underscore(`_`) before the name of the function to tell the library
3030
that it is an attribute. The argument passed to the function is the attribute's value. For example, `_id("p1")` generates `id="p1"`.
31-
> Note: Everything is possible. `_data_phone("num")` will generate and attribute `data-phone="num"`. You can write anything, and it will be converted to markup. The library makes to presumptions of what you will write.
31+
> Note: Everything is possible. `_data_phone("num")` will generate an attribute `data-phone="num"`. You can write anything, and it will be converted to markup. The library makes no presumptions of what you will write.
3232
3333
### HTML Attributes with dash(-)
3434
For attributes that contains dash(-) in their names, replace all dashes with underscores(_). For example, `http-equiv="X-UA-Compatible"` will be `::_http_equiv("X-UA-Compatible")`
3535

3636
## HTML Element
3737
Any name without an `_` will be treated as an HTML element. This means, you can even create your own HTML elements. There is no limit. For example
38-
`::random()::_id("random1")::text("A Text here")::random(1);` will generate an html markup: `<random id="random1">A Text here</random>`.
38+
`::random()::_id("random1")::__text("A Text here")::random(1);` will generate an html markup: `<random id="random1">A Text here</random>`.
3939

40-
To close a previously opened tag, pass 1 as the argument to the open tag's function. For example, `::p()::text("Hello")::p(1)`. Notice the `::p(1)`.
40+
To close a previously opened tag, pass 1 as the argument to the open tag's function. For example, `::p()::__text("Hello")::p(1)`. Notice the `::p(1)`.
4141

4242
## The __text() Function
4343
Use this function to put text/markup/code/string between opening and closing tags.
@@ -47,7 +47,7 @@ Adds the famous `<!DOCTYPE html>` to your markup.
4747

4848
## The __end() function
4949
Prints the html markup and empties the buffer. All unclosed HTML tags will be closed.
50-
> Warning: Call this at the end of the file. Otherwise, use __pause() if your want to run a php code in between markup generation.
50+
> Warning: Call this at the end of the file. Otherwise, use __pause() if you want to run a php code in between markup generation.
5151
5252
## The __pause() function
5353
Prints out the current generated markup without closing opened tags. This allows you to run a php code in between markup generation. For example,

0 commit comments

Comments
 (0)