Update the html to match the latest code #45
Conversation
I took a quick look, and noticed that in http://vicb-angulardart.appspot.com/tutorial/03-ch01-creating-your-first-app.html, the "two" script tags (which are 3 in https://angulardart.org/tutorial/03-ch01-creating-your-first-app.html, oops) are just 1:
The application/dart and text/javascript tags are missing. So it looks like the new script doesn't deal with Even before I found that it made me a bit nervous to use a |
PS: This is very cool work, and anything that makes it easier to update code samples is a good thing! |
about the script technique don't worry, John Resig (the creator of jQuery) was one of the first to promote this: http://ejohn.org/blog/javascript-micro-templating/. You are right on the fact that |
We could also leave |
PS: That link does make me feel better about using |
Simple is great! I'll update for this tomorrow (provided we are not using other scripts tags somewhere else) |
It looks like only ch01 & ch07 have |
thanks for the hint, changes commited. |
Could you update http://vicb-angulardart.appspot.com/ so I can do a visual diff? Thanks! |
it's live now |
In http://vicb-angulardart.appspot.com/tutorial/07-ch05-filter-service.html I happened to notice a couple of code snippets (inside the "Built in filters" section) that don't have enough space above them. E.g., the upper border of the snippet that starts This doesn't happen everywhere, but where it does, it's much more noticeable when the last line of the previous paragraph contains some code font. E.g., I didn't notice this problem above Perhaps you removed a line above these snippets? Or is there a style change we need to make? Oh, and... This is new to your version. (I was visually comparing with the old version.) |
That was definitely an issue with the markup, it should be fixed now. |
thanks for catching it ! |
@@ -223,81 +223,81 @@ <h3 id="encapsulating-view-logic-into-components"> | |||
<div class="col-md-6"> | |||
<h3>index.html (previous Chapter)</h3> | |||
|
|||
<pre class="prettyprint"> | |||
<div recipe-book> | |||
<script type="template/dart"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This example probably needs to stay as a <pre>
, since it formats the code (using <strong>
, e.g.).
At least, I assume the formatting is intentional...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch again !
The formatting is indeed intentional.
I would prefer loosing the formatting here over switching back to escaped entities but I'll do whatever your prefer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have strong feelings either way.
-k-
On Wed, Mar 5, 2014 at 8:24 AM, Victor Berchet notifications@github.comwrote:
In app/tutorial/08-ch06-view.html:
@@ -223,81 +223,81 @@
index.html (previous Chapter)
-
-<div recipe-book>
+<script type="template/dart">Nice catch again !
The formatting is indeed intentional.
I would prefer loosing the formatting here over switching batch to escaped
entities but I'll do whatever your prefer.—
Reply to this email directly or view it on GitHubhttps://github.com//pull/45/files#r10306023
.
Once you fix the few things I commented on, this looks great to me. |
Will push the commit & update the live version in the coming minutes. |
Done and thanks again for the very good feedback ! |
So close! |
I think I'm done now :) |
lgtm! Thanks for making the docs better (and for bearing through the review process :). |
Update the html to match the latest code
Cool! Many thanks for reviewing and catching so many errors ! |
Attention to detail is my gift and curse. :) You're very welcome. |
see it online @ http://vicb-angulardart.appspot.com/
The first commit has the kind of magics I like: it allows anybody to easily update the code in the html (ie it removes the burden of having to escape the HTML entities).
The second commit is the "real" update. Hopefully I haven't miss anything... anyway it's now much easier for anybody to update.