atelierspierrot / assets-manager

A Composer plugin to manage "assets" package type
http://assetsmanager.ateliers-pierrot.fr/
GNU General Public License v3.0
7 stars 0 forks source link

Absolute web path in assets link #1

Open ghost opened 10 years ago

ghost commented 10 years ago

I have this dir structure:

    | composer.json
    | classes/
    | vendor/
    | ------- autoload.php
    | ------- assets.json
    | www/
    | ---- vendor/
    | -------- balancer/
    | ------------ package/
    | htdocs
    | ---- assets/ (symlink to ../www/vendor)

I want use assets with paths in htdocs directory. Simpliest way is use absolute path to www like: <link src="/assets/balancer/package/file.css" ...

But you manager generate html only with relative path like: <link src="../../www/vendor/balancer/package/file.css"

Now I replace ../../www/vendor to /assets/, but it not cool.

Can you make possibility to set absolute path of asset?

(Sorry for terrible English).

e-picas commented 10 years ago

Hello Balancer, sorry for replying really late ...

You're right it's a problem, we need to add the possibilty to generate absolute web pahts. I can't figure out right now but it's a requirement for next versions.