Sha256: 20fad2367de62d5a3382df34f8bec7619b364cb7efe265ce675d0a3bd23515b7
Contents?: true
Size: 988 Bytes
Versions: 5
Compression:
Stored size: 988 Bytes
Contents
# frozen_string_literal: true module Pages class Index < ApplicationPage def template render Layout.new(title: "Introduction to Phlex, a fast, object-oriented view framework for Ruby") do render Markdown.new(<<~MD) # Introduction Phlex is a framework for building fast, reusable, testable views in pure Ruby. ## Better developer experience 💃 Phlex views are plain old Ruby objects. View classes are just Ruby classes, templates are just methods, and HTML tags are just method calls. If you know how to define a method that calls another method, you pretty much already know how to use Phlex. ## Better safety 🥽 Phlex view templates render in an isolated execution context where only the instance variables and methods for the specific view are exposed. ## Better performance 🔥 Rendering a Phlex view is ~4.35× faster than an ActionView partial and ~2× faster than ViewComponent component. MD end end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
phlex-0.5.3 | docs/pages/index.rb |
phlex-0.5.2 | docs/pages/index.rb |
phlex-0.5.1 | docs/pages/index.rb |
phlex-0.5.0 | docs/pages/index.rb |
phlex-0.4.0 | docs/pages/index.rb |