MooTools 備有不少 plugin 在所謂 MooTools More,官網亦提供 More Builder 方便自訂下載。
不過若要下載 1)整套 More 所有元件,或 2)最新開發版本 有沒有簡單辦法呢?
寫這篇時才發現,原來 download 頁就有「Edge Build」可以抓最新 core build ,把網址 core 換成 more 應該就是最新的 More 了(其實也不確定,沒看到說明)
封存
MooTools 備有不少 plugin 在所謂 MooTools More,官網亦提供 More Builder 方便自訂下載。
不過若要下載 1)整套 More 所有元件,或 2)最新開發版本 有沒有簡單辦法呢?
寫這篇時才發現,原來 download 頁就有「Edge Build」可以抓最新 core build ,把網址 core 換成 more 應該就是最新的 More 了(其實也不確定,沒看到說明)
似乎已解決,只好把本文放分隔線後面……
另一個作法是到 More 的 GitHub Repository 把檔案複製下來,裡面就有 build.rb,會把各元件的原始碼合併起成一份 .js(預設包含 Core + More),附帶好處是要包哪些東西可以寫設定檔存起來。
記具體過程:
cd some_directory
git clone git://github.com/mootools/mootools-more.git
cd mootools-more
git submodule init
git submodule update
def build @string ||= full_build @string.sub!('%build%', build_number) @string # 加入這行才會傳回 @string,否則會輸出空檔案 end
builder = MooTools::Build.new({ :dependency_paths => conf[:dependency_paths], :build_path => conf[:build_path], :dependency_file => conf[:dependency_file] # 原本沒吃到這個設定 })
ruby build.rb
註:寫這文章的時候 Source/Native/URI.js 檔案編碼有問題,若輸出檔案不是 utf-8,可以檢查這個檔案。
神奇的解法!
取得BlogId >> data:blog.blogId
不妙,我也沒留底了
大大
檔案已失聯,跪求檔案
Yeah it really works but its better to keep a towel or any kind of cloth below the stained cloth nor the stain will be absorbed by the other side of that cloth.And it really doesn't matter whether the stain is of 1 week or 1 month.
Alec is awesome! I fix nearly everything that I possibly can in my home and use youtube almost exclusively. Most posts are a constant ramble and yammering and words filling dead air space. It 's unnecessary and confusing. Alec speaks only when necessary and demonstrates each fix quickly and accurately. Camera person is completely tuned in to every move Alec makes. Thanks! Just spot on