commit cb3df1b7e677b590882c709846696b8967889038 Author: Joel Pittet Date: Thu Mar 6 15:27:08 2014 -0800 doc cleanup from #85 diff --git a/core/lib/Drupal/Core/Template/TwigNodeVisitor.php b/core/lib/Drupal/Core/Template/TwigNodeVisitor.php index a2cae19..64315fb 100644 --- a/core/lib/Drupal/Core/Template/TwigNodeVisitor.php +++ b/core/lib/Drupal/Core/Template/TwigNodeVisitor.php @@ -34,14 +34,12 @@ function enterNode(\Twig_NodeInterface $node, \Twig_Environment $env) { * @see twig_render */ function leaveNode(\Twig_NodeInterface $node, \Twig_Environment $env) { - // We use this to inject a call to render_var -> twig_render_var() - // before anything is printed. if ($node instanceof \Twig_Node_Print) { $class = get_class($node); $line = $node->getLine(); return new $class( new \Twig_Node_Expression_Function('render_var', new \Twig_Node(array($node->getNode('expr'))), $line), - $node->getLine() + $line ); } diff --git a/core/modules/comment/templates/comment.html.twig b/core/modules/comment/templates/comment.html.twig index e8c5bb7..5fca73b 100644 --- a/core/modules/comment/templates/comment.html.twig +++ b/core/modules/comment/templates/comment.html.twig @@ -95,7 +95,6 @@ - {# We hide the links now so that we can render them later. #} {{ content|without('links') }} {% if signature %} diff --git a/core/modules/node/templates/node.html.twig b/core/modules/node/templates/node.html.twig index 55d5589..5bf5ad9 100644 --- a/core/modules/node/templates/node.html.twig +++ b/core/modules/node/templates/node.html.twig @@ -93,7 +93,6 @@ {% endif %} - {# We hide links now so that we can render them later. #} {{ content|without('links') }} diff --git a/core/themes/bartik/templates/comment.html.twig b/core/themes/bartik/templates/comment.html.twig index f66b14b..b6d4bb9 100644 --- a/core/themes/bartik/templates/comment.html.twig +++ b/core/themes/bartik/templates/comment.html.twig @@ -109,7 +109,6 @@ {{ title_suffix }} - {# We hide the links now so that we can render them later. #} {{ content|without('links') }} diff --git a/core/themes/bartik/templates/node.html.twig b/core/themes/bartik/templates/node.html.twig index 539c014..e61bd9c 100644 --- a/core/themes/bartik/templates/node.html.twig +++ b/core/themes/bartik/templates/node.html.twig @@ -17,7 +17,9 @@ * - published: Whether the node is published. * - label: The title of the node. * - content: All node items. Use {{ content }} to print them all, - * or print a subset such as {{ content.field_example }}. + * or print a subset such as {{ content.field_example }}. Use + * {{ content|without('field_example') }} to exclude the printing of a + * given child element. * - user_picture: The node author's picture from user-picture.html.twig. * - date: Formatted creation date. Preprocess functions can reformat it by * calling format_date() with the desired parameters on @@ -89,7 +91,6 @@
- {# We hide links now so that we can render them later. #} {{ content|without('links') }}