In the previous article, I showed you how you can use extent as a function to extend your basic template
to the other pages as well, so I even showed you and in that previous document I showed you how you
can render an estimate.
And this is going to be contribution to the general complex as well.
And in this, we are going to work with how you can work with how you can work with Jianguo templates
in order to render.
More things on your funding application form, but this time we are going to use two things.
One is going to be the Falu and one is going to be defense pot.
And before this, I would show you how you can possibly replace to your front end application front
and part of your application using the Centex function and how you render your variables using a dictionary.
So you will get to know this all this individual.
So let's get started with it.
So first thing I am going to do is going to define a pot.
So basically I'm going to define who you are on my third page and I would call a function.
You start my page and I would name this as my third page as well.
So I am using this naming convention so that in order you get to the doing so, you get a brief overview
like this is the third page who you are working on.
So of course I will run my server on my machine.
So this is going then why is it slow?
Because I've not defined my third page function in my views.
So what I'm going to do, I'm going to move to my views, don't be fired and define my third page mistake
request as a barometer.
And basically it is going to return and render.
Request and put in, so basically till now, I have not defined it yet, so what I'm going to do is
go into my next folder and in time I'll go to second Faymann.
So I would quickly copy this and create a new file file basis and I'll change this.
So.
On this as past third.
Now, I said this as told Dr. Tional.
And I hope this will work and I'll move to my local service that has started my third page so you can
see the title is my third page.
So it extends to the common Navar.
I told you how you can quickly extend one page to another using an extended function.
So now I would tell you how you can extend rebels.
I think you are going to extend rebels to the front end application using the context function.
This is going to be very, pretty good and pretty easy also.
So what you can do, you can.
Simply to agreeable and create a stable of a detective straight to the name.
Hello.
Now, what I am going to do, I'm going to define my dictionary.
And what?
What you want to pass this for, just to be an easy way to send key value pair, so basically.
Basically, you are forcing the variable, rather.
The team also as well.
So what I'm going to do, I have a quick overview of this, so you will type and text.
Is equal to my dictionary.
Now you are passing a new variable where so this is your variable, basically this has a data on the
right type value.
And on the key side, you are naming the name, which is going to be rendered on the front and forth
and now.
What I'm going to do.
I'm going to declare each one heading and to initialize the value of the rebel, I'm going to type via.
OK, this looks good.
Now, I would refresh speed.
Now it says hello, this is pretty cool.
Now what I can do or I'll have another variable.
Greet, greeting, and I say, hey.
How are you so this would greet the user, but this time I'm going to fuss with the main message.
So so this would help you to understand.
So this can mean anything.
So what I'm telling greeting is unbearable of this time.
So this is a value greeting and what Neimann going to possibly the message.
So when I move to the third e-mail.
What I'm going to do.
I'm going to use message here and now this message basically has the greeting variable inside it.
So this would bring the value on the front and application part to say, hey, how are you?
This was pretty cool.
Now.
I'm going to define a list of rules, basically Apple.
Mangou.
And banana.
And.
I'm going to pass these foods using key value pair, basically.
I'm going to it with my foods, so this food fast, this food, which has a data type of list for it,
you can see.
And I'm going to tell you the name, my boots on the front and back, and when I move here and create
an unwanted list using a simple Falu, so I type.
OK, before this, I would type for each fruit and.
My group's.
I'll simply end this tube using this template and for an.
I'm going to type to type the list by.
And basically, each food is a value.
I'm going to print.
And you can see the magic here, you can see apple, mango, banana is here and simply maybe sometime
you have a large lift in your back and forth and you want to print it.
You can simply pick it up or look.
So even this you can you can do this like this.
We do it like for I in my fruit, you can simply print.
I want this to work.
OK, so you can see even this also, Wolf.
So this looks pretty cool.
We are done with the fall as well.
Now we are going to walk with the spot.
So in the future, you can see the gray.
Agreeable, it could give any type.
And basically, it could give any time what you can do is like you can have a bit of you, this is how
we use like if.
Elif.
As and if so, in order to end anything, you need to type if I left as and if so, what we can do.
OK, OK, we are going to take two numbers.
No one.
Come on.
Number two is equal to.
Three and five.
So what we are going to do and we are going to take a variable.
Answer.
And the answer is going to be.
What we can do is.
Also is going to be number one.
Is greater than two, so before this, I would bring the answer on my console.
So what I'm going to do is going to speech this would, if you are, recall that you've got views of
the and it says.
So you can hear see, it's his fault because no one has the values and the number to has five and spirited
and fight.
No.
So this gets the value as false.
And it dispensed the answer on my consoles.
I would come out and I would render answer.
As answer.
No one.
As one.
OK, and also.
Numb to.
As to.
So this should work and see.
OK, now you can see, OK, this is going to be good, so no one is being tested on one.
No to answer no.
I am what I'm going to do.
I'm going to use it if condition.
Answer.
And I'm going to use an end spot as well as.
And if.
OK, so you can see this is the same syntax I'm using this time, I'm only using an F.
As an end, if only.
If, officer.
If an officer is right, this means what I meant in my view of the file, that.
If this is true, then no one is greater, if it's more than the number two is greater than you type.
No one is greater.
Don.
OK, we can even do this like this, also what we can do, we'll use color with this.
No one is quicker than.
To.
This looks good.
And as part, we are going to the rest of it and Jane, this has none to is greater than number one.
OK, so this is my spot and I'll move to my page.
And if this cease fire is greater than three, because I had mentioned in the file, if I change these
two numbers and your random numbers, I lead to 10 and I'll take this as seven.
So this will look.
Maybe this time of year it's is greater than seven because because I have created a back in logic and
I'm using that logic in my thought as well.
So in the previous year, I showed you why is good and now I'm sure you can see it in seven.
So you can use this back and logic on the Peli part, render it and show it.
So thank you so much, guys.
I'll catch you in the next election.
So thank you, guys.