hiqdev / hidev

Automation tool mixed with code generator for easier continuous development
http://hiqdev.com/packages/hidev
BSD 3-Clause "New" or "Revised" License
29 stars 7 forks source link

how to pass extra data to templates? #7

Open jomonkj opened 5 years ago

jomonkj commented 5 years ago

I can't find any options there vendor/hiqdev/hidev/src/handlers/TemplateHandler.php

    public function prepareData($data)
    {
        return array_merge([
            'app'     => Yii::$app,
            'config'  => Yii::$app, /// DEPRECATED
            'file'    => $data->file,
            'handler' => $this,
        ], parent::prepareData($data));
    }