Blogger Beta.

早幾天我從 Blogger 過渡到 Blogger Beta 了。

就在昨天,我浪費了一整個晚上去研究他那新的 Template System 。新的 Template System 實在是太複雜了,我很懷疑那堆看上去是 XML 的 Template Tags 到底還算不算是 Markup Language ,如果要現在給他起個名字的話,我大概會叫他做 Extensible Programming Markup Language (XPML) 。

說實話,這 XPML 要是真的是 programming language 的話,我想事情大概會輕鬆許多,這隻披著羊皮的狼,於我來說簡直就是一場惡夢。 Programmer 要學一種新的語言並不難,難就難在這傢伙是看上去像,但實際上卻不是。處於兩者之間,最是困難。 Markup Language 本來就不擅長表達邏輯關係,但 Blogger 硬要把他做成 Programming Language ,結果就是 Syntax 累贅到爆。更糟糕的是這傢伙不能獨立存在,必需在 XHTML 裡面 include modules 才成,讓使用變得更加複雜…。

另外就是它沒有一份正式的 specification ,資料主要分散在 Blogger Help 的三篇文章裡面 (blah blah blah...) ,寫一個 element 要在三頁之間翻來翻去,麻煩是通常的三倍,但我卻不是紅色有角,沒有三倍效率…。

等到我克服了以上困難,寫好一個 Blog Posts Widget (so-called) 後,將它貼上 Edit Template 的 Textarea ,按下 Save Template ,確定提示畫面, View Blog 。在 Blogger Navbar 、 Header 下面的是一片空白。

一片空白。

我再回到 Edit Template , Expand Widget Templates 。我看見我整個 Blog Posts Widget 被替換成之前被覆蓋的那個,但其他非 widget 部份卻活得好好的 (除了所有 double quote 被換成 single quote 和被加了一些怪東西) 。「他媽的…」當時我是這樣說的。

…我是做錯了什麼嗎…。

其他不足之處也就不想講了,如無意外我不想再碰這東西第二次。 Blogger 自從賣給 Google 以來好像就沒有發生過什麼好事。一個晚上我應該可以清理掉當時欠下的功課 (現在不行了 w) 。

結局我回到 Classic Template 了。如果沒有這個 Option 的話,我應該已經跳槽去了其他 Weblog System 。

Comments

  1. You might need this. ;)
    http://ecmanaut.blogspot.com/2006/09/blogger-beta-templates.html

    ReplyDelete
  2. I know everything he said. The reason why the template system disgusts me is not that I don't understand it, but the way Google implements it.

    The approach to build a markup language with the sense of programming is false in the first step. Wouldn't it be a more direct way to define a new element instead of calling a function via a DOM with the use of IF element to decide whether conetent should be showed up or not? It is even worse to have that included in my XHTML document (via namespace), which is supposed to be handled in the server side and give me a pure XHTML file. It confine me to XHTML with the cost of complexity.

    Another thing is that the system is not built with the heart of standards. I don't understand why section and widget have to generate a div with id. Neither do I understand why Blogger convert all linebreaks in the comment to <br /> but do not an option to choose between this and the one without /.

    ReplyDelete

Post a Comment