Skip to content

Commit ae99c63

Browse files
authored
Merge pull request #19 from razroo/zeta-4982-nameSchema-global-variable
added nameSchema to variable-dependencies and variables-to-ignore
2 parents 8d42882 + 9b7417f commit ae99c63

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

src/rz/global-variables/variable-dependencies/variable-dependencies.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,16 @@ export const powerUpVariablesFlatData: PowerUpVariables[] = [
4848
codeExample: 'myName to My Name',
4949
variableDependency: 'name'
5050
},
51+
{
52+
name: 'nameSchema',
53+
description: 'will create a nameSchema variable that allows you to select schema values from the schema object',
54+
defaultValue: '<%= nameSchema %>',
55+
stubValue: 'nameSchema',
56+
codeExample: `<% for(let i = 0; i < nameSchema.length; i++) { %>
57+
<div> <%= nameSchema[i] %> </div>
58+
<% } %>`,
59+
variableDependency: 'name'
60+
},
5161
{
5262
name: 'orgName',
5363
description: 'Will dyanmically get organization name',

src/rz/global-variables/variables-to-ignore/variables-to-ignore.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ export const powerUpVariables: PowerUpVariables[] = [
3535
name: 'titleName',
3636
description: 'camelCase to Title Case',
3737
codeExample: 'myName to My Name'
38+
},
39+
{
40+
name: 'nameSchema',
41+
description: 'will create a nameSchema variable that allows you to select schema values from the schema object',
42+
codeExample: `<% for(let i = 0; i < nameSchema.length; i++) { %>
43+
<div> <%= nameSchema[i] %> </div>
44+
<% } %>`
3845
}
3946
]
4047
},

0 commit comments

Comments
 (0)