Skip to content

Simple gem for fetching, replacing and storing global web template as application layout

License

Notifications You must be signed in to change notification settings

svobodni/svobodni_layout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SvobodniLayout

Usage:

rake svobodni_layout:install

Sample rake task for periodic updates:

namespace :svobodni_layout do
  desc "Fetch and install centralized application layout"
  task :install do
    template = SvobodniLayout::Processor.new
    template.fetch
    template.head = '
     <%= stylesheet_link_tag    "application", media: "all", "data-turbolinks-track" => true %>
     <%= javascript_include_tag "application", "data-turbolinks-track" => true %>
     <%= csrf_meta_tags %>
    '
    template.title = '<%= @page_title || "Svobodní" %>'
    template.breadcrumb = '<%= breadcrumbs separator: " / " %>'
    template.store
  end
end

This project rocks and uses MIT-LICENSE.

About

Simple gem for fetching, replacing and storing global web template as application layout

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published