2 ms·
> Which of these two codes can you understand faster? The first one, definitely! The first one shows the structure of the document and places the button in con
by tdeck 4y ago
> Which of these two codes can you understand faster?
The first one, definitely! The first one shows the structure of the document and places the button in context. I cant actually tell that the second example is equivalent, since there's no "rest of the document" or if there is it's done by magic behind the scenes.
Edit: I don't want to come off as too harsh on this project, this example is relatively simple so it probably doesn't show off the power of programming your email templates as code.
- Theryston 4y agothere you have it, the example was so good that you even got it wrong, the first one was just a Button that would be reused in other files, but with all the code you thought it was an entire document, when in the second you obviously see that it's just a button component
- tdeck 4y agoThe first one has a <DOCTYPE> tag. When do you see that embedded within a larger document?