Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
e98b3ab
Add checks for loose closing blocks
abraham-fox Dec 26, 2021
a1d3683
Improve performance for substrings + fix code style
abraham-fox Dec 29, 2021
d538b4c
Update BlockAccumulatorContext.cs
abraham-fox Dec 30, 2021
c4f34b0
Merge pull request #485 from abraham-fox/check-loose-closing-blocks
probot-auto-merge[bot] Dec 30, 2021
c64ffc4
Remove duplicate AliasProviders initialization
RomainHautefeuille Jan 5, 2022
4277ab1
Merge pull request #486 from RomainHautefeuille/patch-1
oformaniuk Jan 5, 2022
d57003f
Enable support for chained path iterators
abraham-fox Jan 23, 2022
370a3a6
Fix condition
abraham-fox Jan 23, 2022
bf2925d
Merge pull request #488 from abraham-fox/enable-support-for-chained-p…
oformaniuk Jan 23, 2022
1bb7979
Decorators implementation
oformaniuk Jan 24, 2022
5f4bf50
Update README
oformaniuk Jan 24, 2022
c127e41
Fix memory leak
oformaniuk Jan 24, 2022
558562b
Merge pull request #489 from Handlebars-Net/feature/decorators
oformaniuk Jan 24, 2022
b121813
Use `windows-2019` instead of `windows-latest`
oformaniuk Mar 4, 2022
d193100
Merge pull request #506 from Handlebars-Net/chore/build-issue-windows…
oformaniuk Mar 4, 2022
2b95626
Swapped expected and actual values in Assert.Equal
periklis92 Mar 5, 2022
6023398
Added Split substring test with remove empty options
periklis92 Mar 5, 2022
9636537
Fixed bug in SplitEnumerator that ommited last letter
periklis92 Mar 5, 2022
eeb92a3
Added a test that covers issue #500
periklis92 Mar 5, 2022
1216aaf
Merge pull request #504 from periklis92/issue-#500
probot-auto-merge[bot] Mar 5, 2022
27ceabd
Update readme.md to include extra projects
StefH Mar 9, 2022
6701bb7
Merge pull request #509 from Handlebars-Net/stef-update-readme
probot-auto-merge[bot] Mar 11, 2022
7052ed0
Allow System.String property access
Dragwar Mar 24, 2022
4d08171
Merge pull request #510 from Dragwar/dragwar/issue/457
oformaniuk Mar 26, 2022
9eecb5a
Fix collision handling in`FixedSizeDictionary`
oformaniuk Mar 26, 2022
76bf589
Merge pull request #512 from Handlebars-Net/issues/498
oformaniuk Mar 26, 2022
a69939f
Introduce `SharedEnvironment`
oformaniuk Mar 26, 2022
e709aa9
Merge pull request #514 from Handlebars-Net/feature/shared-env
oformaniuk Mar 26, 2022
392cc5c
Add issue test
oformaniuk Apr 7, 2022
e68a2c8
Pass current context instead of parent context
oformaniuk Apr 7, 2022
e6e4d53
Merge pull request #516 from Handlebars-Net/issues/515
oformaniuk Apr 7, 2022
8966512
Added failing test for rendering inline blocks #524
Nisden Dec 22, 2022
b2a73bd
Inline blocks should not be additionally escaped
Nisden Dec 22, 2022
64bf3a8
Merge pull request #538 from Nisden/InlineBlockShouldNotGetEscaped
rexm Feb 7, 2023
7d7e3c0
Exit loop when reaching the reader end
anth12 Dec 13, 2022
8dc42f6
Added unit test for issue 535
anth12 Dec 13, 2022
3585d29
Merge pull request #536 from anth12/master
oformaniuk Feb 14, 2023
cb86f6e
Bump Newtonsoft.Json in /source/Handlebars.Benchmark
dependabot[bot] Jun 23, 2022
9aa3afd
Merge pull request #523 from Handlebars-Net/dependabot/nuget/source/H…
oformaniuk Feb 15, 2023
ce1f01b
Bump Newtonsoft.Json from 9.0.1 to 13.0.1 in /source/Handlebars.Test
dependabot[bot] Jun 22, 2022
31c7d52
Merge pull request #522 from Handlebars-Net/dependabot/nuget/source/H…
oformaniuk Feb 15, 2023
0338d53
Create FUNDING.yml
oformaniuk Feb 15, 2023
8d3eba4
Add optional 3rd argument to lookup helper
StefH Feb 21, 2023
6b68f5d
ex
StefH Feb 21, 2023
d27753b
reformat file
StefH Feb 22, 2023
e6f5890
cc
StefH Feb 22, 2023
ed5c5c4
.
StefH Feb 22, 2023
50614fd
Merge pull request #542 from Handlebars-Net/stef-lookup
oformaniuk Feb 23, 2023
68e5209
Fix LiteralConverter to support long
StefH Dec 8, 2023
fcee926
java 17
StefH Dec 8, 2023
0838af8
[MethodImpl(MethodImplOptions.AggressiveInlining)]
StefH Dec 15, 2023
459c2dd
Merge pull request #562 from Handlebars-Net/stef-LiteralConverter
StefH Jan 5, 2024
8b6bc71
Use PackageLicenseExpression in NuGet package
StefH Jan 5, 2024
5174fac
Merge pull request #564 from Handlebars-Net/stef-PackageLicenseExpres…
StefH Feb 14, 2024
25f23d6
Merge branch 'master' into chore/new-targets
thompson-tomo Apr 1, 2024
3f10b28
Further csproj cleanup
thompson-tomo Apr 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/FUNDING.yml
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
# These are supported funding model platforms

github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: Handlebars-Net/Handlebars.Net # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
310 changes: 155 additions & 155 deletions .github/workflows/ci.yml
Original file line numberDiff line numberDiff line change
@@ -1,156 +1,156 @@
name: CI

on:
push:
branches: [ master ]
jobs:
build:
name: Build
runs-on: windows-latest
steps:
- uses: actions/checkout@master
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
2.1.x
3.1.x
5.0.x
6.0.x
- name: Clean package cache as a temporary workaround for https://github.com/actions/setup-dotnet/issues/155
working-directory: ./source
run: dotnet clean -c Release && dotnet nuget locals all --clear
- name: Build
working-directory: ./source
run: dotnet build -c Release

test:
name: Tests on ${{ matrix.os }}
needs: [build]
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ macos-latest, ubuntu-latest, windows-latest ]
steps:
- uses: actions/checkout@master
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
2.1.x
3.1.x
5.0.x
6.0.x
- name: Clean package cache as a temporary workaround for https://github.com/actions/setup-dotnet/issues/155
working-directory: ./source
run: dotnet clean -c Release && dotnet nuget locals all --clear
- name: Test
working-directory: ./source
run: dotnet test --logger:trx --logger:GitHubActions

sonar-ci:
name: SonarCloud
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
2.1.x
3.1.x
5.0.x
6.0.x
- uses: actions/setup-java@v1
with:
java-version: '13' # The JDK version to make available on the path.
- name: Clean package cache as a temporary workaround for https://github.com/actions/setup-dotnet/issues/155
working-directory: ./source
run: dotnet clean -c Release && dotnet nuget locals all --clear
- name: Cache SonarCloud packages
uses: actions/cache@v1
with:
path: ~\sonar\cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache SonarCloud scanner
id: cache-sonar-scanner
uses: actions/cache@v1
with:
path: .\.sonar\scanner
key: ${{ runner.os }}-sonar-scanner
restore-keys: ${{ runner.os }}-sonar-scanner
- name: Install SonarCloud scanner
if: steps.cache-sonar-scanner.outputs.cache-hit != 'true'
shell: powershell
run: |
New-Item -Path .\.sonar\scanner -ItemType Directory
dotnet tool update dotnet-sonarscanner --tool-path .\.sonar\scanner
- name: Run tests
run: dotnet test source/Handlebars.sln --logger:trx --collect:"XPlat Code Coverage" --settings source/Handlebars.Test/coverlet.runsettings
- name: Build and analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: 22a5e1c1df52b7200ac14fc139ed1dfbe53dda4d
shell: powershell
run: |
.\.sonar\scanner\dotnet-sonarscanner begin /k:"Handlebars-Net_Handlebars.Net" /o:"handlebars-net" /d:sonar.login="${{ env.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.opencover.reportsPaths="**/*.opencover.xml" /d:sonar.cs.vstest.reportsPaths="**/*.trx" /d:sonar.coverage.exclusions="**/*.md;source/Handlebars.Benchmark/**/*.*" /d:sonar.cpd.exclusions="source/Handlebars/Iterators/**/*.*"
dotnet build source/Handlebars.sln -c Release
.\.sonar\scanner\dotnet-sonarscanner end /d:sonar.login="${{ env.SONAR_TOKEN }}"
benchmark:
name: Run Benchmark.Net
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
2.1.x
3.1.x
5.0.x
6.0.x
- name: Clean package cache as a temporary workaround for https://github.com/actions/setup-dotnet/issues/155
working-directory: ./source
run: dotnet clean -c Release && dotnet nuget locals all --clear
- name: Run benchmark
working-directory: ./source/Handlebars.Benchmark
run: dotnet run -c Release -f net6 --exporters json --filter '*' -m --join
- name: Get benchmark file name
id: benchmarkfilename
working-directory: ./source/Handlebars.Benchmark/BenchmarkDotNet.Artifacts/results
run: |
filePath=$(find . -type f -name 'BenchmarkRun-joined-*-report-full-compressed.json' | rev | cut -d '/' -f1 | rev)
echo $filePath
echo "::set-output name=file::$filePath"
- name: Store benchmark result
uses: Happypig375/github-action-benchmark@v1.8.2
with:
name: Benchmark.Net Benchmark
tool: 'benchmarkdotnet'
output-file-path: source/Handlebars.Benchmark/BenchmarkDotNet.Artifacts/results/${{ steps.benchmarkfilename.outputs.file }}
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true
# Show alert with commit comment on detecting possible performance regression
alert-threshold: '200%'
comment-on-alert: true
fail-on-alert: false
alert-comment-cc-users: '@zjklee'
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: Benchmark
path: source/Handlebars.Benchmark/BenchmarkDotNet.Artifacts/results/
update_release_draft:
name: Release Drafter
runs-on: ubuntu-latest
needs: [build, test, sonar-ci]
steps:
- uses: release-drafter/release-drafter@v5
env:
name: CI
on:
push:
branches: [ master ]
jobs:
build:
name: Build
runs-on: windows-2019
steps:
- uses: actions/checkout@master
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
2.1.x
3.1.x
5.0.x
6.0.x
- name: Clean package cache as a temporary workaround for https://github.com/actions/setup-dotnet/issues/155
working-directory: ./source
run: dotnet clean -c Release && dotnet nuget locals all --clear
- name: Build
working-directory: ./source
run: dotnet build -c Release
test:
name: Tests on ${{ matrix.os }}
needs: [build]
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ macos-latest, ubuntu-latest, windows-2019 ]
steps:
- uses: actions/checkout@master
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
2.1.x
3.1.x
5.0.x
6.0.x
- name: Clean package cache as a temporary workaround for https://github.com/actions/setup-dotnet/issues/155
working-directory: ./source
run: dotnet clean -c Release && dotnet nuget locals all --clear
- name: Test
working-directory: ./source
run: dotnet test --logger:trx --logger:GitHubActions
sonar-ci:
name: SonarCloud
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
2.1.x
3.1.x
5.0.x
6.0.x
- uses: actions/setup-java@v4
with:
java-version: '17' # The JDK version to make available on the path.
- name: Clean package cache as a temporary workaround for https://github.com/actions/setup-dotnet/issues/155
working-directory: ./source
run: dotnet clean -c Release && dotnet nuget locals all --clear
- name: Cache SonarCloud packages
uses: actions/cache@v1
with:
path: ~\sonar\cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache SonarCloud scanner
id: cache-sonar-scanner
uses: actions/cache@v1
with:
path: .\.sonar\scanner
key: ${{ runner.os }}-sonar-scanner
restore-keys: ${{ runner.os }}-sonar-scanner
- name: Install SonarCloud scanner
if: steps.cache-sonar-scanner.outputs.cache-hit != 'true'
shell: powershell
run: |
New-Item -Path .\.sonar\scanner -ItemType Directory
dotnet tool update dotnet-sonarscanner --tool-path .\.sonar\scanner
- name: Run tests
run: dotnet test source/Handlebars.sln --logger:trx --collect:"XPlat Code Coverage" --settings source/Handlebars.Test/coverlet.runsettings
- name: Build and analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: 22a5e1c1df52b7200ac14fc139ed1dfbe53dda4d
shell: powershell
run: |
.\.sonar\scanner\dotnet-sonarscanner begin /k:"Handlebars-Net_Handlebars.Net" /o:"handlebars-net" /d:sonar.login="${{ env.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.opencover.reportsPaths="**/*.opencover.xml" /d:sonar.cs.vstest.reportsPaths="**/*.trx" /d:sonar.coverage.exclusions="**/*.md;source/Handlebars.Benchmark/**/*.*" /d:sonar.cpd.exclusions="source/Handlebars/Iterators/**/*.*"
dotnet build source/Handlebars.sln -c Release
.\.sonar\scanner\dotnet-sonarscanner end /d:sonar.login="${{ env.SONAR_TOKEN }}"
benchmark:
name: Run Benchmark.Net
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
2.1.x
3.1.x
5.0.x
6.0.x
- name: Clean package cache as a temporary workaround for https://github.com/actions/setup-dotnet/issues/155
working-directory: ./source
run: dotnet clean -c Release && dotnet nuget locals all --clear
- name: Run benchmark
working-directory: ./source/Handlebars.Benchmark
run: dotnet run -c Release -f net6 --exporters json --filter '*' -m --join
- name: Get benchmark file name
id: benchmarkfilename
working-directory: ./source/Handlebars.Benchmark/BenchmarkDotNet.Artifacts/results
run: |
filePath=$(find . -type f -name 'BenchmarkRun-joined-*-report-full-compressed.json' | rev | cut -d '/' -f1 | rev)
echo $filePath
echo "::set-output name=file::$filePath"
- name: Store benchmark result
uses: Happypig375/github-action-benchmark@v1.8.2
with:
name: Benchmark.Net Benchmark
tool: 'benchmarkdotnet'
output-file-path: source/Handlebars.Benchmark/BenchmarkDotNet.Artifacts/results/${{ steps.benchmarkfilename.outputs.file }}
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true
# Show alert with commit comment on detecting possible performance regression
alert-threshold: '200%'
comment-on-alert: true
fail-on-alert: false
alert-comment-cc-users: '@zjklee'
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: Benchmark
path: source/Handlebars.Benchmark/BenchmarkDotNet.Artifacts/results/
update_release_draft:
name: Release Drafter
runs-on: ubuntu-latest
needs: [build, test, sonar-ci]
steps:
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8 changes: 4 additions & 4 deletions .github/workflows/pull_request.yml
Original file line numberDiff line numberDiff line change
Expand Up@@ -7,7 +7,7 @@ on:
jobs:
build:
name: Build
runs-on: windows-latest
runs-on: windows-2019
steps:
- uses: actions/checkout@master
- name: Setup dotnet
Expand All@@ -30,7 +30,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ macos-latest, ubuntu-latest, windows-latest ]
os: [ macos-latest, ubuntu-latest, windows-2019 ]
steps:
- uses: actions/checkout@master
- name: Setup dotnet
Expand All@@ -50,7 +50,7 @@ jobs:

sonar-pr:
name: SonarCloud
runs-on: windows-latest
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
with:
Expand All@@ -65,7 +65,7 @@ jobs:
6.0.x
- uses: actions/setup-java@v1
with:
java-version: '13' # The JDK version to make available on the path.
java-version: '17' # The JDK version to make available on the path.
- name: Clean package cache as a temporary workaround for https://github.com/actions/setup-dotnet/issues/155
working-directory: ./source
run: dotnet clean -c Release && dotnet nuget locals all --clear
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line numberDiff line numberDiff line change
Expand Up@@ -7,7 +7,7 @@ on:
jobs:
publish:
name: Publish
runs-on: windows-latest
runs-on: windows-2019
steps:
- uses: actions/checkout@v2

Expand Down
Loading