Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
22 changes: 20 additions & 2 deletions .github/workflows/release.yaml → .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name: HandlebarsABAP release
name: HandlebarsABAP workflow

on:
release:
types:
- created
push:
pull_request:

permissions:
contents: write
Expand All @@ -13,7 +15,23 @@ env:
RELEASE_CLASS_FILE: ZCL_HANDLEBARS_ABAP.abap

jobs:
build:
lint:
name: Lint source
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "24"
- name: Install abaplint
run: npm install @abaplint/cli

- name: Lint
run: npx abaplint

release:
name: Create release file
if: ${{ github.event_name == 'release' }}
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
deps
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2025 Michel Vouillarmet
Copyright (c) 2026 Michel Vouillarmet

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# HandlebarsABAP
Single-file [Handlebars](https://handlebarsjs.com/) implementation for ABAP.
Single-file 7.40SP02-compatible [Handlebars](https://handlebarsjs.com/) implementation for ABAP.

## What is Handlebars?
To quote the [Handlebars documentation](https://handlebarsjs.com/guide/):
Expand Down Expand Up @@ -48,7 +48,7 @@ WRITE / ls_template_result-text. " Prints 'Ing. Peter Parker'.
```

## Installation
HandlebarsABAP can be installed via [abapGit](https://docs.abapgit.org/user-guide/projects/online/install.html) or by simply creating a *ZCL_HANDLEBARS_ABAP*-class on the client and pasting the content of the latest *ZCL_HANDLEBARS_ABAP.abap* release file into it.
HandlebarsABAP can be installed by using the latest release-tag via [abapGit](https://docs.abapgit.org/user-guide/projects/online/install.html) or by simply creating a *ZCL_HANDLEBARS_ABAP*-class on the client and pasting the content of the latest *ZCL_HANDLEBARS_ABAP.abap* release file into it.

## What's supported so far
### Fields
Expand Down Expand Up @@ -124,10 +124,9 @@ It's possible to write and configure custom helpers like in HandlebarsJS but it

```abap
METHOD hello.
DATA lv_name TYPE string.
lv_name = it_args[ 1 ]->*.
ASSIGN it_args[ 1 ]->* TO FIELD-SYMBOL(<name>).

rs_result = io_instance->fn( NEW string( |Hello { lv_name } | ) ).
rs_result = io_instance->fn( NEW string( |Hello { <name> } | ) ).
ENDMETHOD.
```

Expand Down
36 changes: 36 additions & 0 deletions abaplint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"global": {
"files": "/src/**/*.*",
"exclude": [],
"noIssues": [],
"skipGeneratedBOPFInterfaces": false,
"skipGeneratedFunctionGroups": false,
"skipGeneratedGatewayClasses": false,
"skipGeneratedPersistentClasses": false,
"skipGeneratedProxyClasses": false,
"skipGeneratedProxyInterfaces": false,
"useApackDependencies": false,
"skipIncludesWithoutMain": false
},
"dependencies": [
{
"folder": "/deps",
"files": "/src/**/*.*"
}
],
"syntax": {
"version": "v740sp02",
"errorNamespace": "^(Z|Y|LCL_|TY_|LIF_)",
"globalConstants": [],
"globalMacros": []
},
"rules": {
"check_syntax": true,
"avoid_use": true,
"unused_variables": true,
"parser_error": {
"exclude": [],
"severity": "Error"
}
}
}
Loading