Skip to content

Commit

Permalink
Merge pull request #25 from lekman/feature/nuget-release
Browse files Browse the repository at this point in the history
Feature/nuget release
  • Loading branch information
lekman authored Nov 29, 2024
2 parents d90007a + ad818d5 commit 9e7ea54
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 47 deletions.
42 changes: 0 additions & 42 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion AzureLiquid.Preview/PreviewProcess.cs
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ private void LogWarning(string text = "", Exception? e = null)
}

/// <summary>
/// Called when a source file has changed and calls to process output using that input.
/// Event is called when a source file has changed and calls to process output using that input.
/// </summary>
/// <param name="source">The source.</param>
/// <param name="e">The <see cref="FileSystemEventArgs"/> instance containing the event data.</param>
Expand Down
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
# Azure Liquid

[![Unit Tests](https://github.com/lekman/AzureLiquid/actions/workflows/ci_unit_tests.yml/badge.svg)](https://github.com/lekman/AzureLiquid/actions/workflows/ci_unit_tests.yml)
[![Code Analysis](https://github.com/lekman/AzureLiquid/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/lekman/AzureLiquid/actions/workflows/codeql-analysis.yml)
[![NuGet](https://img.shields.io/nuget/v/AzureLiquid.svg)](https://www.nuget.org/packages/AzureLiquid)
[![Code Scanning](https://github.com/lekman/AzureLiquid/actions/workflows/codeql.yml/badge.svg)](https://github.com/lekman/AzureLiquid/actions/workflows/codeql.yml)
[![Coverage](https://codecov.io/gh/lekman/AzureLiquid/branch/main/graph/badge.svg?token=6449B7XRCS)](https://codecov.io/gh/lekman/AzureLiquid)

## Packages

| Package | Latest Version |
| ------- | -------------- |
| AzureLiquid | [![NuGet](https://img.shields.io/nuget/v/AzureLiquid.svg)](https://www.nuget.org/packages/AzureLiquid) |
| AzureLiquid.Preview | [![NuGet](https://img.shields.io/nuget/v/AzureLiquid.Preview.svg)](https://www.nuget.org/packages/AzureLiquid.Preview) |

## Overview

Allows programmatic parsing, unit testing and live preview of Liquid templates, specifically designed for the Azure cloud services.
Expand All @@ -15,7 +21,7 @@ The Liquid template engine that is used in Microsoft Azure is based on the [DotL

> DotLiquid is a .Net port of the popular Ruby Liquid template language. It is a separate project that aims to retain the same template syntax as the original, while using .NET coding conventions where possible. For more information about the original Liquid project, see [https://shopify.github.io/liquid/](https://shopify.github.io/liquid/).
This library uses my [.NET 6.0 port](https://github.com/lekman/dotliquid-net6) of the same library, to allow for cross-platform compilation and tooling support.
This library uses my [.NET port](https://github.com/lekman/dotliquid-net6) of the same library, to allow for cross-platform compilation and tooling support.

Azure uses a set of predefined feature uses of DotLiquid. For example, an Azure Logic App mapping service uses the "content" accessor for any data submitted using a workflow action. The [LiquidParser](https://github.com/lekman/AzureLiquid/blob/main/AzureLiquid/LiquidParser.cs") class exposes a set of SetContent methods used to either set:

Expand Down Expand Up @@ -68,7 +74,7 @@ result.Should().NotBeEmpty("A result should have been returned");
result.Should().Be(myObj.Title, "The expected result should be returned");
```

[See the full example](https://github.com/lekman/Liquid.Parser/blob/main/Liquid.Tests/LiquidParserTests.cs#L22)
[See the full example](https://github.com/lekman/AzureLiquid/blob/feature/nuget-release/AzureLiquid.Tests/LiquidParserTests.cs)

Another example can be made where we use a string body to transform the data.

Expand Down

0 comments on commit 9e7ea54

Please sign in to comment.