Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance the indent function #165

Closed
hairyhenderson opened this issue Jun 14, 2017 · 0 comments
Closed

Enhance the indent function #165

hairyhenderson opened this issue Jun 14, 2017 · 0 comments

Comments

@hairyhenderson
Copy link
Owner

From #162

It'd be useful to be able to call indent like so:

$ gomplate -i '{{ indent 4 "foo" }}'
    foo

This obviously assumes that the indent string is " " (a single space), and it needs to be possible to specify other indent strings. For this, a 3-arg form would be handy:

$ gomplate -i '{{ indent 2 "-" "foo" }}'
--foo

This implies that the default indent string would be " ".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant