jinja2cpp / jinja2cpp/Jinja2Cpp

Implement 'indent' filter

Open
#174 0 comments 0 reactions 0 assignees View on GitHub
enhancement hacktoberfest help wanted
Dominant language
C++
Stars
600
Forks
114
PR merge metrics
No merged PRs in 30d

Description

Implement 'indent' filter according to the [jinja2 specification](https://jinja.palletsprojects.com/en/2.10.x/templates/#indent):

> Return a copy of the string with each line indented by 4 spaces. The first line and blank lines are not indented by default.
>
> **Parameters:**
> - width – Number of spaces to indent by.
> - first – Don’t skip indenting the first line.
> - blank – Don’t skip indenting empty lines.
>

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.