StencilSwiftKit
StencilSwiftKit copied to clipboard
A framework bringing additional nodes & filters to Stencil dedicated to Swift code generation
In a template, if I try: `value|replace:"\n","\\n"` The search and replace strings become `"\\n"` and `"\\\\n"` respectively. I think we should un-escape these backslashes, so that users correctly can search...
Adds a new filter, `unicodeCase`, which outputs a Unicode code point to a formatted string. Related PR: https://github.com/SwiftGen/SwiftGen/pull/638
I am trying to filter an array using `map`. In this case I filter Sourcery variables: `{% map type.allVariables into vars using variable %}{% if variable.readAccess != "private" and variable.readAccess...
Some of our current filters accept a boolean parameter, which isn't always clear "what" that parameter is for: - camelToSnakeCase: lowercase the components or not - snakeToCamelCase: trim empty components...
When mutating a variable inside a for-loop, these changes get reverted on loop exit. This is quite unlike most programming languages. Unfortunately this makes you use more boilerplate code inside...
I have this simple custom template: ``` // swiftlint:disable all // Generated using SwiftGen — https://github.com/SwiftGen/SwiftGen {% if files %} {% macro fileBlock file %} {% call documentBlock file.document %}...
I'm using Sourcery, I can't create my own filters and I've tried many times to increment an Integer, I'd like to ask if it's possible to add this as a...
## Description This issue is to update Stencil dependency to the latest release, which should be either 0.15.2 or 0.16.0 if windows-support gets merged soon. ## Context - https://github.com/stencilproject/Stencil/pull/342 for...
hello swiftgen team! i am working with stencil in the context of a custom swiftgen template. i am attempting to iterate over a list of dictionaries and extract all the...