Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Assets on Rails na Prática
Search
Ramon Bispo
December 17, 2012
Programming
0
220
Assets on Rails na Prática
Entendendo, configurando e aplicando a estrutura de assets do Rails.
Ramon Bispo
December 17, 2012
Tweet
Share
More Decks by Ramon Bispo
See All by Ramon Bispo
Dicas para tomadas de decisão seguras em front-end
ramonpage
0
430
Other Decks in Programming
See All in Programming
詳細解説! ArrayListの仕組みと実装
yujisoftware
0
580
Flutterを言い訳にしない!アプリの使い心地改善テクニック5選🔥
kno3a87
1
150
Compose 1.7のTextFieldはPOBox Plusで日本語変換できない
tomoya0x00
0
190
TypeScriptでライブラリとの依存を限定的にする方法
tutinoko
2
660
3 Effective Rules for Using Signals in Angular
manfredsteyer
PRO
1
100
リアーキテクチャxDDD 1年間の取り組みと進化
hsawaji
1
220
見せてあげますよ、「本物のLaravel批判」ってやつを。
77web
7
7.7k
CSC509 Lecture 11
javiergs
PRO
0
180
Arm移行タイムアタック
qnighy
0
310
2024/11/8 関西Kaggler会 2024 #3 / Kaggle Kernel で Gemma 2 × vLLM を動かす。
kohecchi
5
910
.NET のための通信フレームワーク MagicOnion 入門 / Introduction to MagicOnion
mayuki
1
1.4k
Hotwire or React? ~アフタートーク・本編に含めなかった話~ / Hotwire or React? after talk
harunatsujita
1
120
Featured
See All Featured
Documentation Writing (for coders)
carmenintech
65
4.4k
Building Adaptive Systems
keathley
38
2.3k
Designing for humans not robots
tammielis
250
25k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.3k
Scaling GitHub
holman
458
140k
What's in a price? How to price your products and services
michaelherold
243
12k
Facilitating Awesome Meetings
lara
50
6.1k
Raft: Consensus for Rubyists
vanstee
136
6.6k
Designing the Hi-DPI Web
ddemaree
280
34k
Java REST API Framework Comparison - PWX 2021
mraible
PRO
28
8.2k
Optimising Largest Contentful Paint
csswizardry
33
2.9k
RailsConf 2023
tenderlove
29
900
Transcript
RAMON BISPO http://ramonpage.com @ramonpage ASSETS ON RAILS NA PRÁTICA ENTENDENDO,
CONFIGURANDO E APLICANDO
ASSET PACKAGING NO RAILS @RAMONPAGE
UM POUCO DE HISTÓRIA Rails < 3.1 - Jammit http://documentcloud.github.com/jammit/
- Asset Packager https://github.com/sbecker/asset_packager Rails 3.1+ - Sprockets https://github.com/sstephenson/sprockets @RAMONPAGE
@RAMONPAGE RAILS 3.1+ ASSET PIPELINE config.assets.enabled = true
@RAMONPAGE RAILS 3.1+ ASSET PIPELINE FINGERPRINTING /stylesheets/styles.css?2509895876 styles.css => styles-908e25f4bf641868d8683022a5b62f54.css
ESTRUTURA DOS ASSETS NO RAILS @RAMONPAGE ↳ app ↳ assets
↳ images - ... ↳ javascripts - application.js - ... ↳ stylesheets - application.css - ... ↳ ...
@RAMONPAGE ENTENDENDO OS MANIFESTOS application.js //= require jquery //= require
jquery_ujs //= require_tree . application.css /* *= require_self *= require_tree . */
@RAMONPAGE MAIS SOBRE ASSET PIPELINE RAILS GUIDES http://guides.rubyonrails.org/asset_pipeline.html
ENTENDENDO PRÉ-PROCESSADORES @RAMONPAGE COFFEESCRIPT http://jashkenas.github.com/coffee-script/ SASS http://sass-lang.com/ COMPASS http://compass-style.org/
@RAMONPAGE SASS EM USO .CSS .content-navigation { border-color: #3bbfce; color:
#2b9eab; } .border { padding: 8px; margin: 8px; border-color: #3bbfce; } .SASS $blue: #3bbfce $margin: 16px .content-navigation border-color: $blue color: darken($blue, 9%) .border padding: $margin / 2 margin: $margin / 2 border-color: $blue
@RAMONPAGE NÃO GOSTOU? DÊ UMA OLHADA NO LESS http://lesscss.org/
SHOW ME THE CODE @RAMONPAGE
RAMON BISPO http://ramonpage.com @ramonpage OBRIGADO!