Skip to content

@import should import ONCE (default behavior) #396

Open

Description

@akomm

@see: less/less.js#212
They came to the conclusion, that @import default behavior should be to import ONCE. Its already implemented that way.

lessphp dont follow this behavior.

I propose to add the following:

// less.inc.php line 112 in \lessc::tryImport()
if(array_key_exists(realpath($realPath), $this->allParsedFiles())) {
    return array(false, '');
}
// less.inc.php line 45 in \lessc property list
protected $allParsedFiles = array();

Activity

  1. saas786 commented on Apr 12, 2013

    @saas786

    +1

  2. added a commit that references this issue on Jun 2, 2013
  3. rulatir commented on Dec 8, 2013

    @rulatir

    What is stalling this pull?

    How can the community help make it happen?

    Is the main developer not completely convinced that merging this change is the RightThing™ to do?

    Is the main developer not completely convinced that this functionality is a crucial, usefulness-defining feature of the LESS language in its current form?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions