1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

Use local hamlit in dummy app

This commit is contained in:
Takashi Kokubun 2015-03-12 23:15:13 +09:00
parent 1e4c94c5c3
commit fa45c34bc6
7 changed files with 39 additions and 68 deletions

View file

@ -9,6 +9,8 @@ gem 'sass-rails'
gem 'sqlite3'
gem 'uglifier'
gem 'hamlit', path: '../..'
group :development, :test do
gem 'pry-rails'
gem 'spring'

View file

@ -1,3 +1,9 @@
PATH
remote: ../..
specs:
hamlit (0.0.1)
temple
GEM
remote: https://rubygems.org/
specs:
@ -124,6 +130,7 @@ GEM
activesupport (>= 3.0)
sprockets (>= 2.8, < 4.0)
sqlite3 (1.3.10)
temple (0.7.5)
thor (0.19.1)
thread_safe (0.3.5)
tilt (1.4.1)
@ -138,6 +145,7 @@ PLATFORMS
DEPENDENCIES
coffee-rails
hamlit!
jbuilder
jquery-rails
pry-rails

View file

@ -2,4 +2,7 @@ class ApplicationController < ActionController::Base
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
protect_from_forgery with: :exception
def index
end
end

View file

@ -0,0 +1,13 @@
%table
%thead
%tr
- 3.times do |i|
%th
%blink= "head #{i}"
%tbody
- 5.times do |i|
%tr
- 3.times do |j|
%td
%marquee
= "#{i}-#{j}"

View file

@ -1,14 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>Dummy</title>
<%= stylesheet_link_tag 'application', media: 'all' %>
<%= javascript_include_tag 'application' %>
<%= csrf_meta_tags %>
</head>
<body>
<%= yield %>
</body>
</html>

View file

@ -0,0 +1,12 @@
!!!
%html
%head
%title Dummy
= stylesheet_link_tag 'application', media: 'all'
= javascript_include_tag 'application'
= csrf_meta_tags
%body
.container
= yield
%hr
%marquee Hamlit

View file

@ -1,56 +1,3 @@
Rails.application.routes.draw do
# The priority is based upon order of creation: first created -> highest priority.
# See how all your routes lay out with "rake routes".
# You can have the root of your site routed with "root"
# root 'welcome#index'
# Example of regular route:
# get 'products/:id' => 'catalog#view'
# Example of named route that can be invoked with purchase_url(id: product.id)
# get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
# Example resource route (maps HTTP verbs to controller actions automatically):
# resources :products
# Example resource route with options:
# resources :products do
# member do
# get 'short'
# post 'toggle'
# end
#
# collection do
# get 'sold'
# end
# end
# Example resource route with sub-resources:
# resources :products do
# resources :comments, :sales
# resource :seller
# end
# Example resource route with more complex sub-resources:
# resources :products do
# resources :comments
# resources :sales do
# get 'recent', on: :collection
# end
# end
# Example resource route with concerns:
# concern :toggleable do
# post 'toggle'
# end
# resources :posts, concerns: :toggleable
# resources :photos, concerns: :toggleable
# Example resource route within a namespace:
# namespace :admin do
# # Directs /admin/products/* to Admin::ProductsController
# # (app/controllers/admin/products_controller.rb)
# resources :products
# end
root to: 'application#index'
end