承接 lablog/markdown 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

lablog/markdown

Composer 安装命令:

composer require lablog/markdown

包简介

Markdown processer filter for twig templating engine. Also includes laravel service provider to link to Lablog.

README 文档

README

NO LONGER MAINTAINED! Try the following instead: https://github.com/jralph/Twig-Markdown

Markdown Twig Filter for LaBlog

A simple plugin for LaBLog (Also works stand-alone with the twig template engine.).

Navigation

Installation

Installation is done via composer packages.

To install, simply add the following to your composer.json file.

...
"require": {
    ...
    "lablog/markdown": "1.0.*"
    ...
}
...

Laravel & LaBlog Usage

To use the markdown processor with Laravel 4 and LaBlog, just add the service provider to your app/config/app.php providers list.

Note: The provider must be added after the Laravel 4 Twig Bridge provider. Note2: If you have LaBlog up and running, you will have already added the Twig Bridge provider.

...
    'Lablog\Markdown\MarkdownServiceProvider'
...

Using with Stand-alone Twig

To use the markdown processor with a stand-along, non-laravel bridged twig, just add the following to your twig extensions.

'Lablog\Markdown\Twig\MarkdownLoader'

Note: This has not been tested!

General Usage in Templates

To use the markdown filter in a template, simply markdown as a filter to the string you want to process.

<!-- Other Code -->
    {{ var_containing_markdown | markdown }}
<!-- Other Code -->

统计信息

  • 总下载量: 56
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2014-03-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固