Adding a CMS to Your Pyramid Web App Transcripts
Chapter: Markdown: A better format than HTML
Lecture: The problem with HTML
0:00 well, the CMS that we built so far with our pages and read Rex. I think it's a big success.
0:06 We've come a long ways we can create these really cool pages.
0:09 We can create these redirects that allow us to have short little euros to send people to either other parts of our site or to external sites.
0:18 But there's a problem. The problem is with HTML. You might think I want a website. Websites are written in HTML, so I have to write HTML for my CMS.
0:30 Well, no, actually. So here's some HTML and this is the HTML for this page here.
0:37 We wanna have this cool helpage that when we click on the help it says, Here's how you get help with Pipi. I do you need help installing Pip?
0:45 Do you have the right version? Do you have permissions? Here's the instructions on what the each time we had we thought would create this page.
0:52 But what it actually created was, Oh, this. What the heck is this?
0:56 Why are all the words so big after it says have Pippa installed question mark, Look carefully.
1:02 You can see there's something wrong with the closing tag for that age, too. So here's the problem with HTML.
1:10 If something goes wrong, even just a little bit, we forgot a less than angle bracket left symbol here, character here, just one.
1:18 The rest of the page is broken, and not just the page that contains the content we wrote.
1:25 No, this is even the additional stuff that the site might generate right, for example, the footer and other things. The whole site is broken.
1:33 And while this may be fine for Web developers, if we're kind of right content on the Web and let non developers work on it, I mean, that's one of the huge benefits of these.
1:42 CMS is is we can give it to marketing people or editors or authors and say Here, just go right that page right this landing page or write this marketing content.
1:51 We don't want them to have to get this exactly right.
1:54 And even if you are a skilled Web developer, you probably also don't wanna have to get this exactly right. So do we dio well marked down to the rescue.
2:03 As a developer, you probably have heard of Mark down by this point, but just in case you haven't been living in a cave under a rock or something.
2:11 It's this format that lets you write in simplified text but then is transformed into HTML and other formats. So here we have on ordered list.
2:22 Do you have pip installed? Is Pip the right version? Do you have permission to install it and so on?
2:27 And what's great about this is that we don't have to close the tags or anything like that, kind of for bold and stuff you do.
2:35 But for the most part, things don't go either wrong at all. Or if they do, they go much less wrong. Then otherwise, now, look into this.
2:44 You might think I can't hand this to a marketing person or a business person who's not a developer. That's gonna mess it. This looks crazy.
2:51 Well, is that where we are for now?
2:54 But as we go through this course as we integrate marked on and we're also gonna add a rich editor that supports hot keys of, um bold its control or command to be what I was highlighted, that's bold.
3:06 You want to make it a header. There's a hot key for that, and there's also a toolbar at the top.
3:11 So we're gonna have a really nice editor to create these market on pages and then turn them into that page that we really wanted to build at the beginning.