Azure / Azure/azure-api-management-policy-toolkit

Implement inlining content of external file to policy

Open
#144 2 comments 0 reactions 1 assignee Claimed by @Mielek View on GitHub
enhancement
Dominant language
C#
Stars
94
Forks
36
Avg merge
2d 6m
Merged PRs (30d)
6

Description

### Proposal

It would be beneficial to be able to inline external files in policy document. It would allow maintaining those files separately from policy.

Example of C# code:
```csharp
context.SetBody(File.ReadAllText("body.liquid"), new SetBodyConfig() { Template = "liquid" });
```

Compiled to
```xml

{% if user %}
Hello {{ user.name }}!
{% endif %}

```

### Component

Authoring library, Compiler

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.