プラグインの基本:初めてのMovable Typeプラグインを作る

| | トラックバック(0)

カテゴリ:

Plugin Basics: Building Your First Movable Type Plugin - movabletype.org

このセクションから、MovableTypeのプラグインとは何かを詳しく見ていきます。 まだ作成可能なプラグインにはどんなものがあるかには触れていませんでしたが、 事実上どんなものでも作る事ができるとだけ言っておきましょう。 その複雑さにはいまは目をつぶっておきます。 その代わりに、プールの浅いところを歩いてみるところから始めましょう。 このガイドを読み進むつれて、あなたのスキルと自信が深まり、 プールの深い部分でも楽しめるよう努めます。

あなたに見て頂きたい事のひとつは、プラグインを書くのがどれぐらい簡単かということです。 MovableTypeはプラグイン開発に必要なプログラムの知識を最小限ですむように設計されており、これからもそのように発展していきます。 Perlの使用は時には避けられませんが、ブラグインを作るために開発者が従うパターンについて我々がより理解するにつれて、MovableTypeのコミュニティはそれらのパターンを再利用するのが簡単になるように適応するでしょう。

以下のセクションではどのようにMovableTypeのプラグインが動作するのかを紹介していきます。 最初に、すべてのMovableTypeプラグインに共通であるコンフィギュレーションファイルの、 基本的な文法を解説します。 そのあとで、もっとも簡単に作る事ができるプラグインを解説し、 基本的な概念について説明してゆきます。

* Introduction to the Movable Type Registry
* A YAML Primer
* Registering Your Plugin: Basic Plugin Metadata
* Adding Your First Configuration Directives
* Adding a Simple Template Tag
* Adding a Conditional Template Tag
* Adding a Template Tag Modifier

From the following sections you should now have a pretty good understanding of what a Movable Type plugin is. We have not yet discussed the many different types of plugins one can possibly create, but suffice it to say you can build virtually anything. Let's not worry about that complexity right now. Instead, let's begin by wading into the shallow end of the pool. Then as we progress through this guide we build your skills and confidence up so that you will feel comfortable at the deeper end of the pool.

One of things we hope you will see is just how easy it can be to write a plugin. Movable Type has been designed and continues to evolve in such a way that it tries to limit the amount of programming knowledge you need in order to develop a plugin. The use of Perl is sometimes unavoidable, but as we understand more about the patterns developers follow to build their plugins, the Movable Type community will adapt to making those patterns easier to replicate.

The following section with introduce you to how Movable Type plugins work. First we will discuss the basic syntax of the heart of any Movable Type plugin: the configuration file, or config.yaml file. Then we will create the simplest plugin you could possibly write and slowly add to it, introducing you to simple concepts as we go.

トラックバック(0)

このブログ記事を参照しているブログ一覧: プラグインの基本:初めてのMovable Typeプラグインを作る

このブログ記事に対するトラックバックURL: https://nozawashinichi.sakura.ne.jp/MT-4.25/mt-tb.cgi/316

comments powered by Disqus

このブログ記事について

このページは、Shinichi Nozawaが2009年2月19日 18:38に書いたブログ記事です。

ひとつ前のブログ記事は「MT::App」です。

次のブログ記事は「MTPlugin-Starterを使ってみる」です。

最近のコンテンツはインデックスページで見られます。過去に書かれたものはアーカイブのページで見られます。