Server-render Heartml web components
  • Ruby 99.6%
  • Shell 0.4%
Find a file
2025-12-12 21:40:16 +00:00
.github/workflows Update Ruby min to 3.2, release 1.0.0.beta21 2025-12-12 21:40:16 +00:00
bin Heartml Ruby server beta 1 2023-08-12 20:51:33 -07:00
lib Update Ruby min to 3.2, release 1.0.0.beta21 2025-12-12 21:40:16 +00:00
test Update Ruby min to 3.2, release 1.0.0.beta21 2025-12-12 21:40:16 +00:00
.gitignore Heartml Ruby server beta 1 2023-08-12 20:51:33 -07:00
.rubocop.yml Update Ruby min to 3.2, release 1.0.0.beta21 2025-12-12 21:40:16 +00:00
benchmark.rb Heartml Ruby server beta 1 2023-08-12 20:51:33 -07:00
CHANGELOG.md Update Ruby min to 3.2, release 1.0.0.beta21 2025-12-12 21:40:16 +00:00
CODE_OF_CONDUCT.md Add the $attribute directive so iso effects will work 2024-02-27 16:36:52 -08:00
Gemfile Update Ruby min to 3.2, release 1.0.0.beta21 2025-12-12 21:40:16 +00:00
Gemfile.lock Update Ruby min to 3.2, release 1.0.0.beta21 2025-12-12 21:40:16 +00:00
heartml.gemspec Update Ruby min to 3.2, release 1.0.0.beta21 2025-12-12 21:40:16 +00:00
LICENSE.txt Heartml Ruby server beta 1 2023-08-12 20:51:33 -07:00
Rakefile Heartml Ruby server beta 1 2023-08-12 20:51:33 -07:00
README.md Update links to Codeberg 2025-08-24 01:25:12 +00:00

Heartml: Ruby Web Components (WIP)

Server-rendered custom elements in Ruby using a SFC (Single-File Component) format loosely based on HTML Modules. Logic on the server-side is analogous to client-side logic provided by the Heartml JavaScript library.

Great for pairing with esbuild-plugin-html-modules for a full-stack component rendering pipeline.

Installation

Install the gem and add to the application's Gemfile by executing:

$ bundle add heartml

If bundler is not being used to manage dependencies, install the gem by executing:

$ gem install heartml

Usage

TODO: Write usage instructions here

Development

After checking out the repo, run bin/setup to install dependencies. Then, run bin/rake test to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bin/rake install. To release a new version, update the version number in version.rb, and then run bin/rake release, which will create a git tag for the version, push git commits and the created tag, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on Codeberg at https://codeberg.org/heartml/heartml-ruby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

License

The gem is available as open source under the terms of the MIT License.