Azure / Azure/azure-api-management-policy-toolkit
Implement inlining content of external file to policy
Open
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
Assessment
This issue has not been assessed yet.