Skip to content

Commit

Permalink
Merge pull request #3 from Eptwalabha/Eptwalabha-patch-ci-workflow_di…
Browse files Browse the repository at this point in the history
…spatch

add event workflow_dispatch
  • Loading branch information
Eptwalabha committed Mar 5, 2024
2 parents 4b015a0 + 06b5659 commit db03c87
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/erlang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:

permissions:
contents: read
Expand All @@ -16,10 +17,10 @@ jobs:
runs-on: ubuntu-latest

container:
image: erlang:23.3
image: erlang:24

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Compile
run: rebar3 compile
- name: Run dialyzer
Expand Down
4 changes: 2 additions & 2 deletions src/mustache.erl
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ do_render([List | Tail], Context, Acc) when is_list(List) ->
do_render(Tail, Context, [List | Acc]).

substitute(Lambda, Context, Escape) when is_function(Lambda, 0) ->
Ast = compile(to_str(Lambda())),
Value = do_render(Ast, Context, []),
AST = compile(to_str(Lambda())),
Value = do_render(AST, Context, []),
escape(Value, Escape);
substitute(RawValue, _, Escape) ->
Value = to_str(RawValue),
Expand Down

0 comments on commit db03c87

Please sign in to comment.