Skip to content

Refactor to support better template processing.#207

Merged
rkeithhill merged 2 commits intomasterfrom
rkeithhill/code-delimiter-syntax
Dec 12, 2016
Merged

Refactor to support better template processing.#207
rkeithhill merged 2 commits intomasterfrom
rkeithhill/code-delimiter-syntax

Conversation

@rkeithhill
Copy link
Copy Markdown
Collaborator

This change now supports script block delimiters to conditionally emit multiple lines of text to a file e.g.:
<%
if ($PLASTER_PARAM_Ensure -eq 'Yes') {
" # Ensure the presence/absene of the resource."
" [ValidateSet('Present','Absent')]"
" [string]"
" `$Ensure = 'Present'"
}
%>

This change now supports script block delimiters to conditionally emit multiple lines of text to a file e.g.:
<%
    if ($PLASTER_PARAM_Ensure -eq 'Yes') {
"        # Ensure the presence/absene of the resource."
"        [ValidateSet('Present','Absent')]"
"        [string]"
"        `$Ensure = 'Present'"
    }
%>
@rkeithhill rkeithhill merged commit e386467 into master Dec 12, 2016
@rkeithhill rkeithhill deleted the rkeithhill/code-delimiter-syntax branch December 12, 2016 07:20
@daviwil
Copy link
Copy Markdown
Contributor

daviwil commented Dec 12, 2016

That a nice way to approach it, looks good

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants