src/YAAP/Theme/Theme.php
public function asset($path, $secure = null, $version = false)
    {

        if (!$this->theme) throw new ThemeException('Theme should be init first');

        $full_path = $this->_assetFullpath($path);

        $asset = $this->app['url']->asset($full_path, $secure);

        if ($version) {

            if (is_bool($version)) {
                $asset .= '?v=' . $this->_assetVersion($path);
            } else {
                $asset .= '?v=' . $version;
            }
        }

        return $asset;

    }
public function asset($path, $secure = null, $version = false)
    {

        if (!$this->theme) throw new ThemeException('Theme should be init first');

        $full_path = $this->_assetFullpath($path);

        $asset = $this->app['url']->asset($full_path, $secure);

        if ($version) {

            if (is_bool($version)) {
                $asset .= '?v=' . $this->_assetVersion($path);
            } else {
                $asset .= '?v=' . $version;
            }
        }

        return $asset;

    }
Generate an asset path for current theme.

@param $path
@param null $secure
@param bool $version
@throws Exceptions\ThemeException
@return mixed