Skip to content
This repository was archived by the owner on Feb 21, 2025. It is now read-only.

Conversation

@pilafmon
Copy link
Collaborator

@pilafmon pilafmon commented Mar 31, 2017

To address issue #115, added a built-in context variable named webRoot to support:

<link rel=stylesheet href=@@webRoot/css/style.css>

See example:
https://github.com/dpilafian/gulp-file-include#webroot-built-in-context-variable

We are currently using this to write our developer docs, and it helps simplify our website build process.

Provides a way to create relative URLs in a template.

Example usage:
<link rel=stylesheet href=@@webRoot/style.css>

Note:
Value is safely set (will not override value if already set in
"context" option)
@coveralls
Copy link

coveralls commented Mar 31, 2017

Coverage Status

Coverage increased (+0.3%) to 82.813% when pulling 2debbc9 on dpilafian:master into f0fc29f on coderhaoxin:master.

@haoxins haoxins merged commit 88706db into haoxins:master Apr 4, 2017
@haoxins
Copy link
Owner

haoxins commented Apr 4, 2017

land 88706db, published as v1.1.0

@dpilafian invited you as a collaborator !

@LeaVerou
Copy link

LeaVerou commented Apr 8, 2017

OMG THANK YOU @dpilafian !! This is exactly what I needed.

pilafmon added a commit to dna-engine/dna-engine that referenced this pull request Apr 11, 2017
pilafmon added a commit to snap-backup/snapbackup that referenced this pull request Aug 7, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants