/
508.txt
89 lines (62 loc) · 3.8 KB
/
508.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
[9]
[[Haml]] は [[HTML]] を生成する元データとなる[[言語]]で、
[[Sass]] は [[CSS]] を生成する元データとなる[[言語]]です。
どちらも [[HTML]] や [[CSS]] とは大きく異なる構文を採用しています。
[12] [[Haml]] と [[Sass]] は元々セットで開発されており、
[[Sass]] から [[CSS]] に変換する実装は [[Haml]] から [[HTML]] に変換する実装に含まれていたようです。
そのため [[Haml]] を両者の総称として使うこともあったようです。
[11]
[[SCSS]] は後に導入された [[Sass]] の別構文です。
元の [[Sass]] の構文と比べると [[CSS]] にかなり近い構文になっています
([[CSS]] は [[SCSS]] である [SRC[>>6]] とされていますが、本当かは知りません)。
[[SCSS]] 導入後、 [[Sass]] という名称は元の構文のことも、
元の構文と [[SCSS]] の総称も表しているようで、どちらの意味かは文脈によります。
[13]
というごちゃごちゃした経緯が外部からはわかりにくく、
ぐぐるといろいろな時代の説明がでてきて混乱しているようにみえます。
[10]
[[Haml]] や [[Sass]] を好む人々は、 [[CoffeeScript]] も使っていることが多いようです。
[1] [CITE[Hamlとは - はてなキーワード]] ([TIME[2009-04-26 16:31:40 +09:00]] 版) <http://d.hatena.ne.jp/keyword/Haml>
[2] [CITE@ja[日本Hamlの会]] ([TIME[2009-04-26 16:32:30 +09:00]] 版) <http://haml.ursm.jp/>
[3] [CITE[#haml]] ([TIME[2009-04-26 16:32:43 +09:00]] 版) <http://haml.hamptoncatlin.com/>
[4] [CITE[#haml]]
([TIME[2010-04-12 13:40:22 +09:00]] 版)
<http://haml-lang.com/>
[8]
>>4 [[ドメイン]]失効
[5] [CITE[Sass - Syntactically Awesome Stylesheets]]
([TIME[2010-04-12 13:41:05 +09:00]] 版)
<http://sass-lang.com/>
[FIG(quote)[
[FIGCAPTION[
[7] [CITE@en[Haml]]
([TIME[2015-06-08 23:25:02 +09:00]] 版)
<http://haml.info/>
]FIGCAPTION]
> 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.
]FIG]
[FIG(quote)[
[FIGCAPTION[
[6] [CITE@en[File: SASS_REFERENCE — Sass Documentation]]
([TIME[2016-03-29 08:46:44 +09:00]])
<http://sass-lang.com/documentation/file.SASS_REFERENCE.html>
]FIGCAPTION]
> 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.
]FIG]
[FIG(quote)[
[FIGCAPTION[
[14] [CITE[CodeMirror: CSS mode]]
([TIME[2017-02-20 17:52:02 +09:00]])
<https://codemirror.net/mode/css/index.html>
]FIGCAPTION]
> text/x-scss
]FIG]
[FIG(quote)[
[FIGCAPTION[
[15] [CITE[CodeMirror: HAML mode]]
([TIME[2015-08-19 22:47:18 +09:00]])
<https://codemirror.net/mode/haml/index.html>
]FIGCAPTION]
> MIME types defined: text/x-haml.
]FIG]