PHPackages                             tomk79/px2-jade - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. tomk79/px2-jade

ActiveLibrary

tomk79/px2-jade
===============

Pickles 2 に、Jade文法でコンテンツをコーディングできる機能を追加します。

2.0.1(8y ago)016MITCSSPHP &gt;=5.4.0

Since Jan 27Pushed 8y ago1 watchersCompare

[ Source](https://github.com/tomk79/px2-jade)[ Packagist](https://packagist.org/packages/tomk79/px2-jade)[ RSS](/packages/tomk79-px2-jade/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (4)Used By (0)

tomk79/px2-jade
===============

[](#tomk79px2-jade)

[Pickles 2](http://pickles2.pxt.jp/) 用のプラグインです。 Pug(Jade)文法でコンテンツをコーディングできる機能を追加します。

Pug(Jade)パーサー ["pug-php/pug"](https://github.com/pug-php/pug) をラップしたものです。

導入手順 - Setup
------------

[](#導入手順---setup)

### 1. `composer.json` に `tomk79/px2-jade` を設定する

[](#1-composerjson-に-tomk79px2-jade-を設定する)

`require` の項目に、`tomk79/px2-jade` を追加します。

```
{
	〜 中略 〜
    "require": {
        "php": ">=5.3.0" ,
        "pickles2/px-fw-2.x": "^2.0",
        "tomk79/px2-jade": "^2.0"
    },
	〜 中略 〜
}

```

### 2. composer update を実行する

[](#2-composer-update-を実行する)

追加したら、`composer update` を実行して変更を反映することを忘れずに。

```
$ composer update

```

### 3. `config.php` に、設定を追加する

[](#3-configphp-に設定を追加する)

設定ファイル `config.php` (通常は `./px-files/config.php`) を編集します。 `$conf->funcs->processor` に、プロパティ `jade` を追加します。これは、コンテンツの拡張子が `jade` の場合(例：`index.html.jade` など)にコールされることを意味します。 `tomk79\pickles2\jade\jade::exec_ext` を処理した後、標準的な HTML の処理を行うように設定します。

下記は設定サンプルです。

```
	$conf->funcs->processor->jade = [
		// Jade文法を処理する
		'tomk79\pickles2\jade\jade::exec_ext' ,

		// html の処理を追加
		$conf->funcs->processor->html ,
	];
```

拡張子 `.pug` に適用したい場合は、 `$conf->funcs->processor->pug` に設定してください。

### 4. Pug(Jade)コンテンツを記述する

[](#4-pugjadeコンテンツを記述する)

ファイル名の後ろに `.jade` を付加したコンテンツが、Jade文法として処理されます。(例： `index.html` の場合、 `index.html.jade` にリネームする)

```
div
	p sample text
```

更新履歴 - Change log
-----------------

[](#更新履歴---change-log)

### tomk79/px2-jade 2.0.1 (2017年8月3日)

[](#tomk79px2-jade-201-2017年8月3日)

- パーサーライブラリを `ronan-gloo/jadephp` から `pug-php/pug` に変更。

### tomk79/px2-jade 2.0.0 (2015年1月27日)

[](#tomk79px2-jade-200-2015年1月27日)

- Initial Release.

ライセンス - License
---------------

[](#ライセンス---license)

MIT License

作者 - Author
-----------

[](#作者---author)

- (C)Tomoya Koyanagi
- website:
- Twitter: @tomk79

for Developer
-------------

[](#for-developer)

### Test

[](#test)

```
$ ./vendor/phpunit/phpunit/phpunit

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~918 days

Total

2

Last Release

3205d ago

PHP version history (2 changes)2.0.0PHP &gt;=5.3.0

2.0.1PHP &gt;=5.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/00ca3b0b7c69b5a8c25bbfb82b305ab94c4fc7458b38df445cbb97acc073875f?d=identicon)[tomk79](/maintainers/tomk79)

---

Top Contributors

[![tomk79](https://avatars.githubusercontent.com/u/584845?v=4)](https://github.com/tomk79 "tomk79 (6 commits)")

---

Tags

pickles

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tomk79-px2-jade/health.svg)

```
[![Health](https://phpackages.com/badges/tomk79-px2-jade/health.svg)](https://phpackages.com/packages/tomk79-px2-jade)
```

###  Alternatives

[bkwld/laravel-pug

Pug view adapter for Laravel

15967.4k2](/packages/bkwld-laravel-pug)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
