pattern-lab / plugin-drupal-twig-components Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
create_attribute()
is a new twig function in Drupal core 8.3.x https://www.drupal.org/node/2818293
The Attribute
class contains a lot of logic, i am not sure if we should copy it, trim it down or maybe add drupal/core
as a composer dependency and use it directly?
Now that patternengine-php-twig provides a way to register proper Twig Extensions (hooray!) we should probably concentrate on creating a Drupal Twig Extension.
The extension should be decoupled from both Drupal and Pattern Lab and usable with all kinds of decoupled Twig/Drupal projects. Maybe something that could be used as a part of the stand-alone implementation discussed in https://www.drupal.org/node/2702061
Not sure what would be the best home for this extension, ideally it would be an official Drupal project.
Hi, is that possible to include other patterns from a json file?
I have this list
<div class="node-list">
{% for node in items %}
<div class="node-list__item">
{{ node }}
</div>
{% endfor %}
</div>
with this json file
{
"items": [
{
"article": {
"nid": 10,
"nodeUrl": "/node/10",
"title": "Example article teaser",
"showTime": false
}
}
]
}
and I want to render the article as another pattern, but I don't want to include this from twig because I'm using render arrays for that on drupal
It'd be awesome if we could get some more documentation on this repo. I'd like to highlight it with the full release of Pattern Lab 2. That will be happening early next week (~Jul. 12). Thanks.
Hello ๐
I run a security community that finds and fixes vulnerabilities in OSS. A researcher (@Rudloff) has found a potential issue, which I would be eager to share with you.
Could you add a SECURITY.md
file with an e-mail address for me to send further details to? GitHub recommends a security policy to ensure issues are responsibly disclosed, and it would help direct researchers in the future.
Looking forward to hearing from you ๐
(cc @huntr-helper)
I think I discovered a bug in Pattern Lab with the view all link.
This bug relates to this PL:
I also noticed that the main style guide didn't include these patterns either.
http://mayflower.digital.mass.gov/styleguide/html/styleguide.html
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.