Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zswang/jphps
Unmarked PHP template
https://github.com/zswang/jphps
php template
Last synced: about 1 month ago
JSON representation
Unmarked PHP template
- Host: GitHub
- URL: https://github.com/zswang/jphps
- Owner: zswang
- Created: 2016-01-21T17:15:51.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-11-08T06:23:01.000Z (about 7 years ago)
- Last Synced: 2024-10-08T13:39:35.030Z (about 1 month ago)
- Topics: php, template
- Language: JavaScript
- Homepage:
- Size: 23.4 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
jphps(<%>)
-----# [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][coverage-image]][coverage-url]
## 处理前
```html
function renderItem($item) {
if (isset($item)) {
#{$item['title']}
}
}
renderItem(array('url' => 'http://google.com/', 'title' => 'Google'));
renderItem(array('url' => 'http://www.baidu.com/', 'title' => '百度'));
```
## 处理后
```php
'http://google.com/', 'title' => 'Google'));
renderItem(array('url' => 'http://www.baidu.com/', 'title' => '百度')); ?>
```
## 运行后
```html
```
## License
MIT © [zswang](http://weibo.com/zswang)
[npm-url]: https://npmjs.org/package/jphps
[npm-image]: https://badge.fury.io/js/jphps.svg
[travis-url]: https://travis-ci.org/zswang/jphps
[travis-image]: https://travis-ci.org/zswang/jphps.svg?branch=master
[coverage-url]: https://coveralls.io/github/zswang/jphps?branch=master
[coverage-image]: https://coveralls.io/repos/zswang/jphps/badge.svg?branch=master&service=github