HAML

HAML

[9] HamlHTML を生成する元データとなる言語で、 SassCSS を生成する元データとなる言語です。 どちらも HTMLCSS とは大きく異なる構文を採用しています。

[12] HamlSass は元々セットで開発されており、 Sass から CSS に変換する実装は Haml から HTML に変換する実装に含まれていたようです。 そのため Haml を両者の総称として使うこともあったようです。

[11] SCSS は後に導入された Sass の別構文です。 元の Sass の構文と比べると CSS にかなり近い構文になっています (CSSSCSS である >>6 とされていますが、本当かは知りません)。 SCSS 導入後、 Sass という名称は元の構文のことも、 元の構文と SCSS の総称も表しているようで、どちらの意味かは文脈によります。

[13] というごちゃごちゃした経緯が外部からはわかりにくく、 ぐぐるといろいろな時代の説明がでてきて混乱しているようにみえます。

[10] HamlSass を好む人々は、 CoffeeScript も使っていることが多いようです。

[1] Hamlとは - はてなキーワード ( 版) <http://d.hatena.ne.jp/keyword/Haml>

[2] 日本Hamlの会 ( 版) <http://haml.ursm.jp/>

[3] #haml ( 版) <http://haml.hamptoncatlin.com/>

[4] #haml ( 版) <http://haml-lang.com/>

[8] >>4 ドメイン失効

[5] Sass - Syntactically Awesome Stylesheets ( 版) <http://sass-lang.com/>

[7] Haml ( 版) <http://haml.info/>

Haml (HTML abstraction markup language) is based on one primary principle: markup should be beautiful. It’s not just beauty for beauty’s sake either; Haml accelerates and simplifies template creation down to veritable haiku.

[6] File: SASS_REFERENCE — Sass Documentation () <http://sass-lang.com/documentation/file.SASS_REFERENCE.html>

There are two syntaxes available for Sass. The first, known as SCSS (Sassy CSS) and used throughout this reference, is an extension of the syntax of CSS. This means that every valid CSS stylesheet is a valid SCSS file with the same meaning. In addition, SCSS understands most CSS hacks and vendor-specific syntax, such as IE’s old filter syntax. This syntax is enhanced with the Sass features described below. Files using this syntax have the .scss extension.

The second and older syntax, known as the indented syntax (or sometimes just “Sass”), provides a more concise way of writing CSS. It uses indentation rather than brackets to indicate nesting of selectors, and newlines rather than semicolons to separate properties. Some people find this to be easier to read and quicker to write than SCSS. The indented syntax has all the same features, although some of them have slightly different syntax; this is described in the indented syntax reference. Files using this syntax have the .sass extension.

[14] CodeMirror: CSS mode () <https://codemirror.net/mode/css/index.html>

text/x-scss

[15] CodeMirror: HAML mode () <https://codemirror.net/mode/haml/index.html>

MIME types defined: text/x-haml.

[16] CodeMirror: Sass mode () <https://codemirror.net/mode/sass/index.html>

MIME types defined: text/x-sass.