Skip to content

Commit

Permalink
- Renamed renderView() to view to be ColdBox 7 compliant now.
Browse files Browse the repository at this point in the history
  • Loading branch information
lmajano committed May 9, 2024
1 parent a286d57 commit 7b552d9
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion box.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name":"ColdBox Security",
"version":"3.5.0",
"version":"3.4.3",
"location":"https://downloads.ortussolutions.com/ortussolutions/coldbox-modules/cbsecurity/@build.version@/[email protected]@.zip",
"author":"Ortus Solutions.com <[email protected]>",
"slug":"cbsecurity",
Expand Down
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- Renamed `renderView()` to `view` to be ColdBox 7 compliant now.

## [3.4.2] - 2024-01-10

## [3.4.1] - 2023-08-09
Expand Down
2 changes: 1 addition & 1 deletion layouts/Main.cfm
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
</nav>

<div class="container-fluid m-2 mt-4 mb-5">
#renderView()#
#view()#
</div>

<!--- Scripts --->
Expand Down
4 changes: 2 additions & 2 deletions test-harness/layouts/Main.cfm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<cfoutput>
<h1>Module Tester</h1>
<div>
#renderView()#
#view()#
</div>
</cfoutput>
</cfoutput>
16 changes: 8 additions & 8 deletions views/home/index.cfm
Original file line number Diff line number Diff line change
Expand Up @@ -137,49 +137,49 @@

<div class="tab-content w-100 ms-5 me-2">
<div class="tab-pane fade show active" id="activity-pane" role="tabpanel" aria-labelledby="activity-tab" tabindex="0">
#renderView(
#view(
view = "home/tabs/activity",
module = "cbsecurity"
)#
</div>
<div class="tab-pane fade show" id="authentication-pane" role="tabpanel" aria-labelledby="authentication-tab" tabindex="0">
#renderView(
#view(
view = "home/tabs/authentication",
module = "cbsecurity"
)#
</div>
<div class="tab-pane fade show" id="basicAuth-pane" role="tabpanel" aria-labelledby="basicAuth-tab" tabindex="0">
#renderView(
#view(
view = "home/tabs/basicAuth",
module = "cbsecurity"
)#
</div>
<div class="tab-pane fade show" id="csrf-pane" role="tabpanel" aria-labelledby="csrf-tab" tabindex="0">
#renderView(
#view(
view = "home/tabs/csrf",
module = "cbsecurity"
)#
</div>
<div class="tab-pane fade show" id="firewall-pane" role="tabpanel" aria-labelledby="firewall-tab" tabindex="0">
#renderView(
#view(
view = "home/tabs/firewall",
module = "cbsecurity"
)#
</div>
<div class="tab-pane fade show" id="rules-pane" role="tabpanel" aria-labelledby="rules-tab" tabindex="0">
#renderView(
#view(
view = "home/tabs/rules",
module = "cbsecurity"
)#
</div>
<div class="tab-pane fade show" id="jwt-pane" role="tabpanel" aria-labelledby="jwt-tab" tabindex="0">
#renderView(
#view(
view = "home/tabs/jwt",
module = "cbsecurity"
)#
</div>
<div class="tab-pane fade show" id="security-headers-pane" role="tabpanel" aria-labelledby="security-headers-tab" tabindex="0">
#renderView(
#view(
view = "home/tabs/security-headers",
module = "cbsecurity"
)#
Expand Down

0 comments on commit 7b552d9

Please sign in to comment.