maragudk / gomponents

HTML components in pure Go.
https://www.gomponents.com
MIT License
1.3k stars 32 forks source link

Add support for additional HTML attributes in HTML5 template #238

Closed wneessen closed 2 weeks ago

wneessen commented 2 weeks ago

This PR updates the HTML5 function to accept and render additional HTML attributes. An additional test case to validate this enhancement has been added as well.

markuswustenberg commented 2 weeks ago

Looks good, thanks!

codecov[bot] commented 2 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (033f6ac) to head (60a8d25). Report is 32 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #238 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 9 5 -4 Lines 534 534 ========================================= Hits 534 534 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.