2017 © Pedro Peláez
 

library think-blade

think blade view engine

image

luoyy/think-blade

think blade view engine

  • Tuesday, January 23, 2018
  • by luoyy
  • Repository
  • 1 Watchers
  • 3 Stars
  • 74 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 19 Forks
  • 0 Open issues
  • 12 Versions
  • 42 % Grown

The README.md

Think-Blade

Blade template engine with thinkphp 5. (component & slot support), (*1)

Installation

composer require luoyy/think-blade, (*2)

conig.php:, (*3)

'template' => [
        // 模板引擎类型 支持 php think 支持扩展
        'type' => 'Blade',
        // 视图基础目录(集中式)
        'view_base' => '',
        // 模板起始路径
        'view_path' => '',
        // 模板文件名分隔符
        'view_depr' => DIRECTORY_SEPARATOR,
        // 模板缓存目录
        'view_cache_path' => RUNTIME_PATH . 'temp' . DIRECTORY_SEPARATOR,
        // 模板文件后缀
        'view_suffix' => 'blade.php',
        'cache' => [
            'cache_subdir' => false,
            'prefix' => '',
        ],
        'tpl_replace_string' => [],
    ],

Usage

<header id="navbar">
    <div class="row navbar-inner">
        <div class="col-xs-6 brand-block">
            <h4><a href="{{ url('/admin') }}"><img src="/assets/admin/images/logo.png"></a> · 管理后台
            </h4>
            <a href="javascript:;" class="cd_nav_trigger"><span></span></a>
        </div>
        <div class="col-xs-6 text-right user-block">
            你好,{{ $manage_user->nickname }}({{ $manage_user->username }})
            <span class="gap-line"></span>
            <a href="{{ url('/manage/index/account') }}" class="item">修改资料</a>
            <span class="gap-line"></span>
            <a href="{{ url('/manage/start/logout') }}" class="confirm item" title="确认要退出吗?">退出</a>
        </div>
        {!! $Foo->function() !!}
        @switch($test)
        @case(1)
        1
        @case(2)
        2
        @default
        2
        @endswitch
    </div>
</header>

DOC

https://laravel.com/docs/5.5/blade, (*4)

http://d.laravel-china.org/docs/5.5/blade (中文), (*5)

The Versions

23/01 2018

dev-master

9999999-dev http://www.luoyy.com

think blade view engine

  Sources   Download

Apache-2.0 Apache2

The Requires

 

by Avatar luoyy

23/01 2018

2.0.4

2.0.4.0 http://www.luoyy.com

think blade view engine

  Sources   Download

Apache-2.0

The Requires

 

by Avatar luoyy

23/01 2018

dev-dev

dev-dev http://www.luoyy.com

think blade view engine

  Sources   Download

Apache-2.0

The Requires

 

by Avatar luoyy

23/01 2018

3.0.1

3.0.1.0 http://www.luoyy.com

think blade view engine

  Sources   Download

Apache-2.0

The Requires

 

by Avatar luoyy

23/01 2018

3.0.0

3.0.0.0 http://www.luoyy.com

think blade view engine

  Sources   Download

Apache2

The Requires

 

by Avatar luoyy

23/01 2018

2.0.3

2.0.3.0 http://www.luoyy.com

think blade view engine

  Sources   Download

Apache2

The Requires

 

by Avatar luoyy

08/11 2017

2.0.2

2.0.2.0 http://www.luoyy.com

think blade view engine

  Sources   Download

Apache2

The Requires

 

by Avatar luoyy

08/11 2017

2.0.1

2.0.1.0 http://www.luoyy.com

think blade view engine

  Sources   Download

Apache2

The Requires

 

by Avatar luoyy

01/11 2017

2.0

2.0.0.0 http://www.luoyy.com

think blade view engine

  Sources   Download

Apache2

The Requires

 

by Avatar luoyy

05/02 2017

1.0.2

1.0.2.0

think blade view engine

  Sources   Download

Apache2

The Requires

 

by Avatar terranc

05/02 2017

1.0.1

1.0.1.0

think blade view engine

  Sources   Download

Apache2

The Requires

 

by Avatar terranc

05/02 2017

1.0

1.0.0.0

think blade view engine

  Sources   Download

Apache2

The Requires

 

by Avatar terranc