Skip to content

Enhance requireModule to set a variable indicating whether or not the module was installed #267

Closed

Description

@rkeithhill

Saw this use case come up during @dchristian3188 user group presentation. I think it is a good idea.

Activity

  1. self-assigned this
    on Jun 22, 2017
  2. LaurentDardenne commented on Jul 2, 2017

    @LaurentDardenne

    Is it not related to this ?

  3. rkeithhill commented on Jul 2, 2017

    @rkeithhill
    CollaboratorAuthor

    Not quite. The idea is to be able to use a Plaster variable created by the <requireModule> directive within another directive's condition (must appear after the requireModule) in the template. Perhaps another conditional message that gets display if the required module was not found. This may be a generalized concept where certain directives that could have different outcomes would get an attribute like <requireModule name="posh-git" resultVariable="PoshGitStatus"/> that you could use later with say ... condition="$PLASTER_RESULT_PoshGitStatus". This is just early thinking and may change significantly (or not). BTW I'm not 100% committed to this yet. Toying with the idea atm.

  4. locked and limited conversation to collaborators on Feb 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions