platformio / platformio/platformio-core

Templates engine & Examples

Open
#446 5 comments 1 reaction 1 assignee View on GitHub

@ivankravets is already working on this.

Since Jan 13, 2016.

feature integration
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.