Asset Pipeline provides built-in functionality to compose CSS directly using Sass.You may have this kind of doubt: what is Sass? Why should I care?Sass (syntactically Awesome stylesheets) was originally a sub-function built into Haml.Use indentation design to avoid making syntax error that is difficult to debugHamlTo talk about Sass, we have to first talk about Haml this project. Haml full name is the HTML
Original link: http://hlee.iteye.com/blog/1236971Asset Pipeline provides built-in functionality to compose CSS directly using Sass.You may have this kind of doubt: what is Sass? Why should I care?Sass (syntactically Awesome stylesheets) was originally a sub-function built into Haml.Use indentation design to avoid making syntax error that is difficult to debugHamlTo talk about Sass, we have to first talk about Haml this project.
The HTML code is cumbersome to write because it has many labels.One way to do this is to use a template to fill in your own content within a skeleton that someone else has written. There is another way I would like to introduce today----shorthand method.The commonly used shorthand method, at present mainly is Emmet and Haml two kinds, this article will introduce.These two kinds of simple writing, function close, each has the characteristic. Considerin
1. What is HamlHaml is the HTML Abstraction Markup Language, followed by the principle that the tag should be beautiful. Haml can accelerate and simplify the template, the advantages are concise, readable, efficient.Comparison of 2.ERBM templates and Haml templates. Erb Template Code:section class = "container" ; h1 ; h1 ; ; h2 ; div class = "content "; div ; section > The same code uses
The HTML code is cumbersome to write because it has many labels.One way to do this is to use a template to fill in your own content within a skeleton that someone else has written. There is another way that I would like to introduce today-shorthand.The commonly used shorthand method, at present mainly is Emmet and Haml two kinds, this article will introduce.These two kinds of simple writing, function close, each has the characteristic. Considering tha
The HTML code is cumbersome to write because it has more tags.
One way to solve this problem is to use templates to fill in your own content in a skeleton written by someone else. Another is the method I want to introduce today----shorthand method.
The commonly used shorthand method, currently mainly is Emmet and Haml two kinds, this article all will introduce.
These two kinds of simple writing, the function is similar, each has the character
1. f. select
. Page-survey-form. pblock. form = simple_form_for @ survey,: url => '/manage/surveys 'do | f |. form-inputs = f. input: title,: input_html =>{: class =>: xxlarge},: placeholder => 'example: Last semester teaching survey in February
Just using CSS to demonstrate such a scenario may not be practical. However, this is a great opportunity to explore the new features of CSS. Lets you try some new features and new tools. and will gradually practice in the work. In the making window the Raindrop effect will be used to Haml and sass.
Case effect
View Demo
SOURCE download
See the above effect is not a bit like people stand indoors looking out of the window rain in the night, the ef
Css achieves the effect of water drops on the window. The effect is extremely lifelike. The rain outside the window is flushed on the glass. It looks like a blurred window, with a steep drop of rain, next we will share with you how to use CSS technology to implement such a picture. Here we will share with you how to use pure css to achieve the vivid effect of window glass raindrops, happy audience of interested friends. Here we only use CSS technology to demonstrate such a scenario, which may no
performance (such as Span-x), which completely violates the rules that Cass names should be based on semantics. Let's put this issue aside for a moment and look at another very, very powerful tool.SassSass is an output CSS programming language, yes, CSS also has a programming language. Sass is based on the Ruby language and is part of the Haml, so installing sass will have to install Haml and, of course, i
performance (such as Span-x), which completely violates the rules that Cass names should be based on semantics. Let's put this issue aside for a moment and look at another very, very powerful tool.SassSass is an output CSS programming language, yes, CSS also has a programming language. Sass is based on the Ruby language and is part of the Haml, so installing sass will have to install Haml and, of course, i
Get started with Node. js template engine Jade, node. jsjade
Jade is a template engine of Node. js. It draws on many aspects of Haml, so its syntax is similar to Haml. In addition, Jade supports spaces.
1. Labels
In Jade, any text starting with a line is interpreted as an HTML Tag by default. And you only need to write the start tag-Note: you do not need to add "
Body div h1 Jade is a Node. js template engi
, you can create visual data tables, management issues, or timelines that contain HTML5 and CSS3 code. Using Timesheet.js you don't have to think about jquery and angular.js, just a few lines of JS code can help you solve the problem.
HAML
Haml is a simple, clean markup language that uses no inline code to generate Web documents, such as HTML, and Haml
Compass. It helps designers compile stylesheets easily without resorting to command line interface. Compass.app is written in Java (JRuby), and works in Mac, Linux and PC. You don't need to install Ruby environment for use it.2. ScoutScout is a Cross-platform app this runs Sass and compass in a self-contained Ruby environment, Scout runs Sass and compass In a self-contained Ruby environment, letting-effortlessly manage all of the your Sass projects with a handful of clicks. You ' ll never has t
stylesheets easily without resorting to command line interface. compass. app is written in Java (JRuby), and works in mac, linux and pc. you do not need to install Ruby environment to use it.2. Scout
Scout is a cross-platform app that runs Sass and Compass in a self-contained Ruby environment, Scout runs Sass and Compass in a self-contained Ruby environment, letting you effortlessly manage all of your Sass projects with a handful of clicks. you'll never have to worry about your Ruby setup or de
system JavaScript implementation, syntax logic is relatively simple, applicable to C + +, Clojure, Erlang, Go, Java, JavaScript and other languages;
Jade: node template engine, used primarily for server templates in node. js;
Haml-js: Allows the use of Haml syntax in JavaScript projects, with the same functionality as native Haml;
Eco: Can be used to
-rich Web application and provide a standard application architecture JavaScript framework;
Angular.js: A set of frameworks, templates, and data binding and rich UI components for developing Web pages, without manual dom manipulation, and extending the HTML class library for apps.
Template
Handlebars.js:JavaScript page Template Library, can provide the necessary semantic template for the developer;
Mustache.js: Is the mustache template system JavaScript implementation, synt
preference, but I still do my best to objectively answer the following:Native vs. Compiled
Write JavaScript in vanilla JavaScript, write css in CSS, write HTMLIn HTML.
Native language vs. precompiled language
Use plain JavaScript to write JavaScript, css to write CSS, html to write HTML.
There were hot debates whether one should write nativeAssembly by hand or use a higher level language like C to make theCompiler generate Assembly code for you. Even before that peop
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.