Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
forked from pitr-ch/htmless

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

ddd-ruby/htmless

Open more actions menu
 
 

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

Languages

  • HTML 80.7%
  • Ruby 18.5%
  • JavaScript 0.8%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.