LaravelBook\Laravel4Powerpack\HTML::script_tag PHP Method

script_tag() public method

Generate a script tag with embed javascript
public script_tag ( string $script, array $attributes = [] ) : string
$script string
$attributes array
return string
    public function script_tag($script, $attributes = array())
    {
        return '<script ' . $this->attributes($attributes) . '>' . $script . '</script>' . PHP_EOL;
    }