These routes have been overwritten. So true allows us in. And so why don't we allow ourselves into the Hello world round? So we'll just type What is this path thing? It just Hello, world.
Let's do true.
Commit be3c207d66f80bf886eccf8db5140dfb251e2d2b
--- config/policies.js
+++ config/policies.js
@@ -22,4 +22,6 @@ module.exports.policies = {
'legal/view-privacy': true,
'deliver-contact-form-message': true,
+ 'hello-world': true
+
};
chrome.exe > NEW_APP_NAME - Google Chrome
Now I'm going to look up. How to dio sales Watch because I forget
Forever destined. You start. Okay, So we're going, Tio.
Then open chrome:
Google Chrome
And that should allow us to refresh the page. Now when we go to Hello, world this time
chrome.exe > NEW_APP_NAME - Google Chrome
We still have to log again. That's funny. Um
Code.exe > policies.js - paircast-sails - Visual Studio Code
You know why? Because it's called view. Hello, world, So I made a mistake here. And this is actually, um
Commit 531c1891117bd22a4a2e3940f64661b05f750b89
--- config/policies.js
+++ config/policies.js
@@ -22,6 +22,6 @@ module.exports.policies = {
'legal/view-privacy': true,
'deliver-contact-form-message': true,
- 'hello-world': true
+ 'view-hello-world': true
};
The name of the controller and not the route. Right? So the reason is we don't wanna have to update the route's every time we have a policy. So these strings here represent the controller. So now we have a sales are the reloading. We should be able to go to. Hello, world down. Get that.
Get through into our page. Okay, So here we are.
Paircast.exe > Paircast
chrome.exe > NEW_APP_NAME - Google Chrome
We're on our page and let's see what this is made up of. So if we open up the sources and we go to network
Well refresh the page.
Ah, we don't We want to see OK, we can see all of these. But sales has this great thing. So if we search for Hello, world we can see that both e. Hello, World. Paige, we're on has been generated as well as
This Paracels
Paracels is actually a
Kind of a modified ofyou. J s. I'll get into it a little bit, but we can see these things have been generated for us already. If we also do a project search
Code.exe > policies.js - paircast-sails - Visual Studio Code
Um, let's see if we can look for Hello world and we can see that again. There's a template a less file a page and controller. So the controller here we are.
Code.exe > view-hello-world.js - paircast-sails - Visual Studio Code
It's instructing us to load that template. So that's how we know about the template. Let's go to that.
Um Hello, world e Js we conceive use pages. Hello, world that we go there. This is our template that involved that.
So if we remove this
Type. Hello, world and refresh over here. We can see that that's been updated, and, um
Commit 2d114fa99c536671fc3df1638553da12d50038f5
--- views/pages/hello-world.ejs
+++ views/pages/hello-world.ejs
@@ -1,7 +1,8 @@
<div id="hello-world" v-cloak>
- <h1>TODO: Implement this page.</h1>
- <p>(See also <em>assets/styles/pages/hello-world.less</em>, <em>assets/js/pages/hello-world.page.js</em>, and <em>api/controllers/view-hello-world.js</em>.)</p>
+ <h1>Hello World!</h1>
+ <p>(See also <em>assets/styles/pages/hello-world.less</em>, <em>assets/js/pages/hello-world.page.js</em>, and
+ <em>api/controllers/view-hello-world.js</em>.)</p>
</div>
<%- /* Expose server-rendered data as window.SAILS_LOCALS :: */ exposeLocalsToBrowser() %>
chrome.exe > NEW_APP_NAME - Google Chrome
We will see as well how the less work So ah!
Say we want to modify some kind of CSS on here.
Well, the whole page has been given the idea. Hello, world.
Code.exe > hello-world.ejs - paircast-sails - Visual Studio Code
And we can actually open up.
Sing.
Less file for this page. So it's underwear we Hello, world that less
And it's given us this index already. So if we modify this file
We'll be affecting the style's only on this page. This follows included. They're imported out less.