Дон Карлос ([info]kastaneda) wrote,
@ 2009-04-15 12:08:00
Previous Entry  Add to memories!  Share this!  Next Entry
Entry tags:q-revo, webdev

html {
	head { title { Веб мог бы быть совсем другим } }
	body {
		div(id='header') {
			a(href='/') { img(border=0) { /images/logo.png } }
			h1 { Привет, мир! }
		}
		div(id='content') {
			p { Такая фигня em { без проблем } преобразуется в XHTML. }
			p { Практического интереса, судя по всему, не представляет ;-) }
		}
	}
}


(17 comments) - (Post a new comment)


[info]animal_tristia
2009-04-15 09:13 am UTC (link)

[info]nec_p1us_u1tra
2009-04-15 09:19 am UTC (link)
Дайош html s-выражениях!!!111

(Reply to this)

поздравляю
[info]egorfine
2009-04-15 09:26 am UTC (link)
ты изобрел функциональное программирование

(Reply to this) (Thread)


[info]kastaneda
2009-04-15 01:20 pm UTC (link)
Что вы курили, прекрасный сэр? (X)HTML - это ЯОД, а не ЯП.

(Reply to this) (Parent) (Thread)


[info]egorfine
2009-04-15 03:38 pm UTC (link)
Я не про HTML, а про твой псевдокод:)
Его можно интерпретировать.

(Reply to this) (Parent) (Thread)


[info]kastaneda
2009-04-15 09:07 pm UTC (link)
+++++++++++++++++++++++++[>++>+++>++++>+++++<<<<-]+++++++++++++++++++++++++>>---
---.>>-------.<+.>----.+++++++.-----.<+++.+.+++++.-------.<<<+++++++.>>>++.>-.<<
<<.>>>.+++++.>+.<---------.>--.--.++.<.>++.<----.+.>--------.<+++.<<----.<.>>---
.>.<<<.>>>--.--.>++++++.<++++.+.>+++.<++++++.<<--.<.>>>>++++.<+++.>----.<+++.<<<
.>>>+.----------.+++.-------.>-------.<--.++.<<<.>>>--.>+.++++++.<+++++++++.----
----.<<<.>>>--.+++.<<<.>>>++++.+++++.>-.<---------.>--.--.++.<.>++.<.-.<<<.>>>--
-.>-.<<<<.>>>.>-----.<<<<.>>>.+++.>-.----.++++++++++..<+++++.>----.-.<<<<.>>>>+.
<---.<<<.>>>+.>++++++.<++.+++.>-.<<<++.

(Reply to this) (Parent) (Thread)


[info]egorfine
2009-04-15 09:35 pm UTC (link)
тю, удивил егорова брейнфаком

(Reply to this) (Parent)

:))))))
[info]_iggi_
2009-04-15 09:53 am UTC (link)
begin
'А мог бы быть еще более другим :)';
end.

(Reply to this)


[info]fester_ua
2009-04-15 10:51 am UTC (link)
1. А вот чем это по сути отличается от лисповых sexps?
2. Первые реализации то ли XML-парсеров, то ли XSLT, было сделаны на лиспе :)

(Reply to this)


[info]gns_ua
2009-04-15 01:13 pm UTC (link)
а это и есть xhtml :)

"угловые скобочки" это просто reference syntax для xml.

(Reply to this) (Thread)


[info]kastaneda
2009-04-15 01:22 pm UTC (link)
Опаньки, а существуют альтернативные варианты синтаксиса xml? Я и не знал.

(Reply to this) (Parent) (Thread)


[info]kastaneda
2009-04-15 08:49 pm UTC (link)
Ух ты. Я впечатлён.

(Reply to this) (Parent)


[info]talmuth
2009-04-16 06:54 pm UTC (link)
Шаблонизатор на Ruby подобный, вроде бы, есть: названия не помню =)

(Reply to this) (Thread)


[info]talmuth
2009-04-16 07:00 pm UTC (link)
http://markaby.rubyforge.org/

меняй do ... end на { ... } и получиш такой же синтаксис

(Reply to this) (Parent)


[info]greedy_clone_n5
2009-06-22 04:35 pm UTC (link)
HAML+SASS http://haml.hamptoncatlin.com/ вот реальный кусок
@@ layout
%html
  %head
    %title XXX Hardcore Gay Porno Chat Pizda Hui Siski
    %style{:type => 'text/css'}
      :sass
        body
          :background-color #f00
          \:background-image url(./__sinatra__/404.png)
          :color #fff
          :font-size 12px
        h1
          :font-size 20px
        input
          :border solid 1px brown

(Reply to this) (Thread)


[info]kastaneda
2009-06-23 05:15 am UTC (link)
Одуренно.

(Reply to this) (Parent)


(17 comments) - (Post a new comment)