LastCallMedia / Mannequin

Mannequin Component Theming Tool
https://mannequin.io/
MIT License
38 stars 8 forks source link

Drupal Twig files don't sample #112

Closed dave-cross closed 6 years ago

dave-cross commented 6 years ago

I think I'm missing something here. The following template should "sample" another file, but I keep getting\MannequinRenderer::render not yet implemented. Ideas?

{# @Component
name: Block
description: Blocks are a container for different items and help structure the site.
group: Drupal>Misc
samples:
  default:
    content:
      - ~sample('@torsion/navigation/breadcrumb.html.twig#Short')
#}

<div{{ attributes }}>
  {{ title_prefix }}
  {% if label %}
    <h2{{ title_attributes }}>{{ label }}</h2>
  {% endif %}
  {{ title_suffix }}
  {% block content %}
    {{ content }}
  {% endblock %}
</div>
rbayliss commented 6 years ago

Hey @cloudsociety! Thanks for trying this out. It looks like you might be on an older version of Mannequin Drupal. Can you try updating using:

composer update lastcall/mannequin*

I'm guessing that'll fix it, because I'm looking at a similar template, and it's working there.

dave-cross commented 6 years ago

Yup. That works now. Cheers, @rbayliss.