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

Add FillPathTemplateString methods to AtataContext #695

Closed
YevgeniyShunevych opened this issue Nov 10, 2022 · 0 comments
Closed

Add FillPathTemplateString methods to AtataContext #695

YevgeniyShunevych opened this issue Nov 10, 2022 · 0 comments
Assignees
Labels
Milestone

Comments

@YevgeniyShunevych
Copy link
Member

Add methods to AtataContext, which are similar to FillTemplateString but additionally the variables are sanitized for path by replacing invalid characters with '_':

public string FillPathTemplateString(string template);

public string FillPathTemplateString(string template, IDictionary<string, object> additionalVariables);

Also add core method to TemplateStringTransformer:

public static string TransformPath(string template, IDictionary<string, object> variables);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant