slawosz / content-slice Goto Github PK
View Code? Open in Web Editor NEWSimple CMS as merb slice
License: MIT License
Simple CMS as merb slice
License: MIT License
ContentSlice ============ A slice for the Merb framework. ------------------------------------------------------------------------------ To see all available tasks for ContentSlice run: rake -T slices:content_slice ------------------------------------------------------------------------------ Instructions for installation: file: config/init.rb # add the slice as a regular dependency dependency 'content-slice' # if needed, configure which slices to load and in which order Merb::Plugins.config[:merb_slices] = { :queue => ["ContentSlice", ...] } # optionally configure the plugins in a before_app_loads callback Merb::BootLoader.before_app_loads do Merb::Slices::config[:content_slice][:option] = value end file: config/router.rb # example: /content_slice/:controller/:action/:id add_slice(:ContentSlice) # example: /:lang/:controller/:action/:id add_slice(:ContentSlice, :path => ':lang') # example: /:controller/:action/:id slice(:ContentSlice) Normally you should also run the following rake task: rake slices:content_slice:install ------------------------------------------------------------------------------ You can put your application-level overrides in: host-app/slices/content-slice/app - controllers, models, views ... Templates are located in this order: 1. host-app/slices/content-slice/app/views/* 2. gems/content-slice/app/views/* 3. host-app/app/views/* You can use the host application's layout by configuring the content-slice slice in a before_app_loads block: Merb::Slices.config[:content_slice] = { :layout => :application } By default :content_slice is used. If you need to override stylesheets or javascripts, just specify your own files in your layout instead/in addition to the ones supplied (if any) in host-app/public/slices/content-slice. In any case don't edit those files directly as they may be clobbered any time rake content_slice:install is run.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.