Giter VIP home page Giter VIP logo

assetic-smarty's People

Contributors

gigo6000 avatar glensc avatar pjparra avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

assetic-smarty's Issues

tag a version

i'd like to use this package via composer, but without dev-master.

so could you please:

  1. add license to package.json (packagist.org shows Unknown License)
  2. tag the release (git tag and push to github)

could you also add to readme smarty version supported or at least version that you initially tested. i.e is this for smarty2 or smarty3?

Notice: Undefined property: stdClass::$css

Hi,

I'm trying to use your plugin in a symfony2 project. do you have any idea why I get this error?

I'm using your example block:
{assetic
assets="style/reset.css,style/common.css,style/other.css"
output="css"
config_path="config"
build_path="style/build"
debug=false
filters="yui_css,less"
asset_url=asset_url}

{/assetic}

Notice: Undefined property: stdClass::$css in .../plugins/block.assetic.php line 122

thanks

Hi there.

may i use this in smarty engine v2 , the last version. ?

$root calculation blows up if config_path is relative

i don't know what that $root is supposed to be, no comments in code but that place really deserves it.

but it calculates wrong

  {assetic
    assets="css/main.css,css/page.css"
    output="css"
    config_path="../config"
    build_path="style/build"
    debug=false
    filters="yui_css,less"
    asset_url=asset_url}
    <link rel="stylesheet" href="{$asset_url}">
  {/assetic}

and with given debug:

    dump('config_path='.$params['config_path']);
    $realpath = realpath($params['config_path']);
    dump('realpath='.$realpath);
    $root = mb_substr($realpath, 0, mb_strlen($realpath, $charset) - mb_strlen($params['config_path'], $charset), $charset);
    dump('root='.$root);

it results:

"config_path=../config"
"realpath=/home/glen/scm/eventum/eventum/config"
"root=/home/glen/scm/eventum/event"

that's definately wrong, whatever $root should be, it looks truncated!

assetic version

what is assetic version this used to work?

i pulled latest:

kriswallsmith/assetic             v1.4.0                        Asset Management for PHP

and get various errors

  • SassCssAbsoluteFilterFilter not found
  • CssAbsoluteFilter not found
  • CacheBustingWorker::STRATEGY_MODIFICATION constant not present

also, why you have assetic and smarty in composer suggests, as clearly this package is only useful if both smarty and assetic are installed as well?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.