platformio / platformio/platformio-core
Templates engine & Examples
@ivankravets is already working on this.
Since Jan 13, 2016.
- Dominant language
- Python
- Stars
- 9.5k
- Forks
- 905
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 2
Description
I would love to see templates in the projects, so when you init a project you could init it with an example, that will have certain information filled out, for example:
platformio init -b megaatmega2560 --ide clion --template BasicSerial will init Arduino basic serial project, so you don't have to copy-paste things.
Also, what can be done, is implementing jinja2 templating enging to replace certain values in the actual code (for example serial baud rate:)
void setup() {
Serial.begin({{serial_baudrate}});
}
Where serial_baudrate could be a parameter in the PIO global file or local (by the precedence).
Please let me know what do you guys think.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.