Skip to content

Is there a filter to escape string? #178

Description

@krypt-lx

I have multiple cases where I need to generate string constants using swiftgen, but I need those strings to be properly escaped.

Depending on use case, those I need strings to be

  • swift strings
  • proper localizable.strings strings

Is there a way to do so?
From sources, it looks like the answer is "no": https://github.com/SwiftGen/StencilSwiftKit/blob/fb6a88bac60b088a9f8b61bbc70eacecb2100b59/Sources/StencilSwiftKit/Environment.swift
Question 1: Maybe I missed something and it is actually possible to do?
Question 2: Will you accept a merge request if I submit an implementation of those filters?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions