In this slides I am mainly talking about how to install the tools and how to run it locally. I have not covered in depth each concept. Just I am giving the overview.
3. Roadmap
Total Time: 2 hours
1. Templates
a. Traditional way of loading data, rendering html, appending
b. How we can solve this?
c. Examples of templates - underscore, handlebars
2. Modular Development
a. Traditional way of loading script
b. Dependency Management
c. RequireJS
3. CSS Pre-processors
a. SASS
1. Build Tool
a. Grunt
4. Tools needed
What do I need to code?
1. Local HTTP server – WAMP/MAMP
2. Text/Code editor – I prefer Sublime Text
6. 1. Traditional way of loading data, rendering html,
appending
2. By using templates how we solve this issue. More faster
- regex.
3. Types of Templates
* Embedded JavaScript Templates
(Underscore, jQuery-templates, ….)
*Logic Less Templates
(Mustache, Handlebars, DustJs, …)
Templates
13. How to install SASS
Using Ruby
If you are using Windows, first you need to install Ruby. Download the
RubyInstaller.exe from http://rubyinstaller.org/
If you are using Linux/Mac, Ruby will be by default Installed.
Install Compass
Gem install compass //for windows
Sudo gem install compass //for Linux/Mac
15. Compass – clean, compile, watch
$ compass compile
Compiles the sass files into css
$ compass clean
Clean the files from the css directory
$compass watch
Watch the folder and compile the sass into css, when
there is a change