originalpomltest
v1.0.0
Published
Simple POML app example
Downloads
4
Readme
Simple POML Test App
This is a simple example application demonstrating the use of Microsoft POML in a Node.js environment.
Installation
npm installUsage
Run the basic example:
npm run example:basicRun the advanced example:
npm run example:advancedProject Structure
src/basic-example.js- A simple example showing basic POML usagesrc/advanced-example.js- A more detailed example showing the intermediate representationpackage.json- Project configuration with scripts for running examples
Understanding the Output
The examples demonstrate how to:
- Create React elements that represent POML structures
- Parse these structures using
pomljs.read() - Convert the intermediate representation to different output formats using
pomljs.write()
Note that the current examples show empty output arrays, which may be due to the specific way POML components need to be structured. The intermediate representation shows that the React elements are being properly created and parsed.
Next Steps
To create more sophisticated POML examples:
- Refer to the official POML documentation
- Experiment with different component structures
- Try using specific POML components like Paragraph, Image, etc.
