WEBVTT 00:00.530 --> 00:04.130 In the last lesson, what we did is we set up our labels in a template. 00:04.670 --> 00:06.860 Now let's go ahead and use it. 00:07.250 --> 00:10.700 In the last lesson I also mentioned, there are two options you can use. 00:10.700 --> 00:13.910 And if you use the wrong one, it's going to be incredibly painful. 00:14.090 --> 00:19.190 And the two options we have is template and include our best practice. 00:19.190 --> 00:20.120 And I always do. 00:20.120 --> 00:25.820 This is I always use include because it allows you to use of a helme functions. 00:26.150 --> 00:29.910 You can use templates, but it doesn't allow you to do that soroban. 00:29.920 --> 00:35.040 And having two things together I think is ten times easier just to use include all the time. 00:35.600 --> 00:41.180 So let's go ahead and put this into practice so it makes more sense so we can get rid of this line here. 00:41.450 --> 00:43.100 But note the indentation. 00:43.400 --> 00:45.400 One, two, three, four. 00:45.980 --> 00:48.980 Very important because this is where our labels are going to go. 00:49.280 --> 00:53.270 And what we're going to need to do is intense it by four spaces. 00:53.510 --> 00:55.490 So make our Conesa, we can put it on the same line. 00:55.850 --> 00:58.970 And as always, let's put in a double curly braces. 00:59.960 --> 01:03.790 We need to put in a dash now very, very important. 01:04.170 --> 01:08.490 You need to remove the second one and you'll find out why very shortly. 01:09.560 --> 01:17.150 So, again, here we have the two options we can even use template or we can use, include and include 01:17.150 --> 01:20.990 will allow us to use the other Helme function, but allows us to indent. 01:21.170 --> 01:25.820 You can't do this with template, so it makes more sense to always use include. 01:26.270 --> 01:31.320 Next, we need to say what template or what part of a template do we want to include. 01:31.910 --> 01:37.520 Now, as you can have multiple things in here, this defined label here and the name tells it what to 01:37.520 --> 01:40.160 include as you can have multiple things inside. 01:40.490 --> 01:41.760 That's what we have the name. 01:41.970 --> 01:44.300 So in this case, we're going to use my labels. 01:47.140 --> 01:52.000 And for whatever reason, if it doesn't work, is usually because there has been a misspelling and as 01:52.000 --> 01:54.220 you can see here, of misspells it myself. 01:54.670 --> 01:58.780 So let's go ahead and say this and just check that all matches. 01:59.680 --> 02:00.220 Excellent. 02:00.670 --> 02:06.100 Next, we need to include the context of where to paste a text because it's effectively what it's going 02:06.100 --> 02:06.560 to do. 02:06.880 --> 02:11.180 We would include is going to include the text and we need to tell it where to put it. 02:11.560 --> 02:18.580 So in this case, we're going to use full stop to say right here, then we need to pass it into a function, 02:18.730 --> 02:23.800 because if we leave it the way it is right now, what is going to do is put everything on a single line. 02:24.370 --> 02:29.950 And this is going to give you a weird error about Jason to Yamal or Yamal to Jason conversion, because 02:29.950 --> 02:34.210 what it will look like is something like this, which is invalid Yamal and invalid. 02:34.220 --> 02:41.560 Jason, the come on we're going to use is called an indent, which stands for new line indentation where 02:41.570 --> 02:43.750 we need to tell it how many lines to indent by. 02:44.400 --> 02:49.480 As we saw before, App Engine X was invented by four spaces. 02:50.260 --> 02:51.280 So we put forward. 02:51.490 --> 02:56.020 And now if you're wondering why we didn't put the second dash in there, well, the purpose of that 02:56.020 --> 02:59.610 dash is to tell Helm not to create a new line. 03:00.010 --> 03:02.640 So it's a bit contradictory what we're trying to do here. 03:02.680 --> 03:09.360 If we then put a dash in here, which would say create a new line followed by don't create a new line. 03:09.640 --> 03:16.330 So by removing it, what it's going to do is take all the elements inside here in Denver by four spaces 03:16.570 --> 03:18.700 and put each one on a new line. 03:19.540 --> 03:21.420 So now let's go ahead and check this out. 03:22.280 --> 03:31.430 Make sure to save a file, because if you go to a terminal and now let's run Helme templates, full 03:31.430 --> 03:31.820 stop. 03:33.310 --> 03:34.000 Excellent. 03:34.480 --> 03:35.290 Let's make this bigger. 03:36.340 --> 03:42.700 How awesome is that we can see a template in action, we have a labels, we have app location and front 03:42.700 --> 03:42.990 end. 03:43.570 --> 03:48.670 Next up, let me show you another really powerful way you can use templates.