# Opulent Opulent is an __Intelligent Web Templating Engine__ created for extremely fast and efficient Web Development. Based on the idea of lightweight and reusable __Web Components__, Opulent greatly increases your development speed for any project. [Read the Documentation](docs/reference.md) ## Syntax Opulent has a beautiful, minimalistic syntax: no tags, indentation based, optional brackets, inline text, inline children and in page definitions. __Page Markup__ ``` html head title Opulent is Awesome body #content ul.list-inline li > a href="http://opulent.io" Opulent li > a href="http://github.com" GitHub footer | With Opulent, you can do anything. ``` __Web Component__ ``` def hello(place) p Hello #{place} hello place="World" ``` __Control Structures__ ``` ul.navbar if @user.logged_in? li Hello #{@user.name} else li > a href=link_to_register Sign Up ``` __Starting to feel it?__ There's so much more you can do with Opulent. [Read the Documentation](docs/reference.md) ## Installation Install it yourself using the ruby gem: $ gem install opulent --- Or add this line to your application's Gemfile: ```ruby gem 'opulent' ``` And then execute: $ bundle ## Usage Using Opulent to render a file is as easy as including it in your application and using the render method. [Read the Documentation](docs/usage.md) ```ruby require 'opulent' Opulent.new.render_file :index ``` ## Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/opulent/opulent. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct. #### Under Development Opulent is currently in the Beta Phase. It has serious potential to becoming the next generation of Templating Engines for Ruby, therefore any contribution is more than welcome. It still has development going on the following subjects: * Template amble (preamble, cache, postamble) generation * More block yielding tests * Multiple page layouts * More to come ## License The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).