This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ContactModel = require('../model/Contacts'); | |
var ContactView = require('../view/Contact'); | |
var AddContactForm = require('../view/AddContactForm'); | |
/** | |
* Controller Object to dispatch actions to view/Contact and model/Contacts. | |
* @constructor | |
*/ | |
var ContactsController = function() { | |
this.init(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. replace @ with $ | |
Find: @ | |
Replace: $ | |
2. replace mixins | |
Find: \.([\w\-]*)\s*\((.*)\)\s*\{ | |
Replace: @mixin \1\(\2\)\n{ | |
3. replace includes | |
Find: \.([\w\-]*\(.*\)\s*;) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%h1 Hello | |
%p Good bye |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%h1 Hello | |
%p Good bye |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
… | |
compass_config do |config| | |
config.output_style = :nested | |
config.sass_options = { :line_comments => false, :debug_info => true } | |
end | |
… |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Snapshot of the XML I was working with. | |
--> | |
… | |
<event-listing> | |
<section id="21" handle="event">Event</section> | |
<entry id="100"> | |
<city handle="city">City</city> | |
<date> | |
<date timeline="1" type="range"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:stylesheet version="1.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
exclude-result-prefixes="xsl"> | |
<xsl:template name="loop"> <!-- Loop --> | |
<xsl:param name="i" /> | |
<xsl:param name="limit" /> | |
<xsl:call-template name="loop-item"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rails CMS alternatives | |
====================== | |
Active projects: | |
--------------- | |
adva-cms | |
repo: http://github.com/svenfuchs/adva_cms/ | |
site: http://adva-cms.org/ | |
Last update: 11/24/09 | |
"the cutting edge Rails CMS platform" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import compass.sass | |
@import susy.sass |