Skip to content

Fast extensible html5 builder written in pure Ruby. Replaces templating engines without loosing speed bringing back the power of OOP.

License

Notifications You must be signed in to change notification settings

pitr-ch/htmless

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Petr Chalupa
Oct 17, 2021
cb88274 · Oct 17, 2021

History

99 Commits
Aug 5, 2021
Oct 17, 2021
Aug 5, 2021
Oct 17, 2021
May 17, 2013
Jun 1, 2013
Jul 21, 2012
Nov 19, 2011
Apr 17, 2015
Jun 1, 2013
Apr 17, 2015
Sep 27, 2021
Aug 5, 2021
May 30, 2015
Apr 17, 2015
Oct 17, 2021
Aug 5, 2021
Mar 28, 2015

Repository files navigation

Htmless

Build Status

Fast and extensible HTML5 builder written in pure Ruby, replaces templating engines without losing speed bringing back the power of OOP.

Quick syntax example

Htmless::Formatted.new.go_in do
  html5
  html do
    head { title 'my_page' }
    body do
      div id: 'content' do
        p "my page's content", class: centered
      end
    end
  end
end.to_html

returns

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>my_page</title>
  </head>
  <body>
    <div id="content">
      <p class="centered">my page's content</p>
    </div>
  </body>
</html>

About

Fast extensible html5 builder written in pure Ruby. Replaces templating engines without loosing speed bringing back the power of OOP.

Resources

License

Stars

Watchers

Forks

Packages

No packages published