@@ -20,10 +20,9 @@ A Processor for Markup based on the [LHTML](https://github.com/Ouxsoft/LHTML) st
20
20
Allows extraction of Markup into a data structure, orchestrated manipulation of said structure, and output as
21
21
(optimized) Markup.
22
22
23
- ** Basic Example**
23
+ ### Instructions
24
+ Create a PHPMarkup Element class used for processing
24
25
``` php
25
- use Ouxsoft\PHPMarkup\Factory\ProcessorFactory;
26
-
27
26
/**
28
27
* Class SayHello
29
28
* DomElement process class
@@ -38,6 +37,12 @@ class SayHello extends Ouxsoft\PHPMarkup\Element
38
37
return 'Hello, ' . $this->getArgByName('who') . $this->innerText();
39
38
}
40
39
}
40
+ ```
41
+
42
+ Then add the class with a processor.
43
+
44
+ ``` php
45
+ use Ouxsoft\PHPMarkup\Factory\ProcessorFactory;
41
46
42
47
// Instantiate Processor and configure to parse output buffer
43
48
$processor = ProcessorFactory::getInstance();
@@ -75,10 +80,9 @@ Read our docs for usage [phpmarkup.readthedocs.io](https://phpmarkup.readthedocs
75
80
76
81
## Contributing
77
82
PHPMarkup is an open source project. If you find a problem or want to discuss new features or improvements
78
- please create an issue, and/or if possible create a pull request.
79
-
80
- [ phpmarkup-stack] ( https://github.com/Ouxsoft/phpmarkup-stack ) is docker development environment
81
- with test suite available to make contributing simpler.
83
+ please create an issue, and/or if possible create a pull request. Contributing is made is with
84
+ [ phpmarkup-stack] ( https://github.com/Ouxsoft/phpmarkup-stack ) a docker based development environment
85
+ with test suite.
82
86
83
87
## Acknowledgement
84
88
Thanks to Matthew Heroux for leading the development of PHPMarkup.
0 commit comments