Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render src and alt attributes in content.image as Go templates #163

Closed
traut opened this issue Apr 23, 2024 · 0 comments · Fixed by #172
Closed

Render src and alt attributes in content.image as Go templates #163

traut opened this issue Apr 23, 2024 · 0 comments · Fixed by #172
Assignees
Labels
enhancement New feature or request fcl
Milestone

Comments

@traut
Copy link
Member

traut commented Apr 23, 2024

At the moment, the attribute values are treated as plain strings which limits their usability:

    section "screenshots" {
      title = "Screenshots"

      content image {
        src = "{{ index (index .data.inline.findings.hosts 1).screenshots 0 }}"
      }
    }

produces

### Screenshots

![]({{ index (index .data.inline.findings.hosts 1).screenshots 0 }})
@traut traut added enhancement New feature or request fcl labels Apr 23, 2024
@traut traut added this to the v0.4 milestone Apr 23, 2024
@traut traut self-assigned this Apr 30, 2024
@traut traut closed this as completed in #172 May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request fcl
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant