2017 © Pedro Peláez
 

yii2-extension yii2-dot

Yii2: doT javascript template

image

pavlinter/yii2-dot

Yii2: doT javascript template

  • Friday, December 4, 2015
  • by pavlinter
  • Repository
  • 2 Watchers
  • 1 Stars
  • 92 Installations
  • JavaScript
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Installation

The preferred way to install this extension is through composer., (*1)

Either run, (*2)

php composer.phar require --prefer-dist pavlinter/yii2-dot "dev-master"

or add, (*3)

"pavlinter/yii2-dot": "dev-master"

to the require section of your composer.json file., (*4)

Usage

 'Jim',
        'age' => '35',
        'msg' => 'Pellentesque non felis ligula',
    ],
    [
        'name' => 'Robert',
        'msg' => 'Cras sagittis dapibus lacus',
    ],
    [
        'name' => 'Maikl',
        'age' => '12',
    ],
    [
        'msg' => 'Cras sagittis dapibus lacus',
    ],
];

$this->registerJs('
    var data = ' . Json::encode($data) .';
    $("#comment-box-html").tmplHtml("comment", data);
    $("#comment-box-append").tmplAppend("comment", data); //append each
    $("#comment-box-prepend").tmplPrepend("comment", data); //prepend each

');

?>



'comment']) ?> <div class="media"> <div class="media-body"> <div class="media-heading"> {{=it.name || 'Anonymous'}} {{? it.age }} <span class="label label-info">{{=it.age}}</span> {{?}} </div> {{? it.msg }} <p>{{=it.msg}}</p> {{?}} </div> </div>

The Versions

04/12 2015

dev-master

9999999-dev

Yii2: doT javascript template

  Sources   Download

BSD 3-Clause

The Requires

 

by Pavels Radajevs

dot template yii2

04/12 2015

v1.1.0

1.1.0.0

Yii2: doT javascript template

  Sources   Download

BSD 3-Clause

The Requires

 

by Pavels Radajevs

dot template yii2

19/02 2015

v1.0.0

1.0.0.0

Yii2: doT javascript template

  Sources   Download

BSD 3-Clause

The Requires

 

by Pavels Radajevs

dot template yii2