-
Notifications
You must be signed in to change notification settings - Fork 32
link variable not work #1
Comments
@ensk - I'll look into this. Thanks for the heads up. |
I think it's a problem with "-" because something similar happens when add a new value in data.json named my-var returns 0, but if I name my_var return the expected value. with the default values in data.json has a normal behavior |
It is probably the A workaround would be to use the built-in This sort of works. The variable gets interpreted right, but the link points to one step too high in the directory hierarchy. E.g. |
@dmolsen - Any reason why DataLinkExporter.php in patternlab-php-core has: $value = "../../".$patternStoreData["pathDash"]."/".$patternStoreData["pathDash"].".html"; Rather than: $value = "../".$patternStoreData["pathDash"]."/".$patternStoreData["pathDash"].".html";
|
@dmolsen - I fixed this by locally changing DataLinkExporter.php from: $value = "../../".$patternStoreData["pathDash"]."/".$patternStoreData["pathDash"].".html"; to: $value = "../".$patternStoreData["pathDash"]."/".$patternStoreData["pathDash"].".html"; Tried to test it with the Mustache edition, but couldn't install pattern-lab/edition-php-development#13. Do you want a pull request on that? |
when I try to create links to patterns as i did with patternlab + mustache {{ link.templates-mypattern }} fails, returns 0. I think it is because twig handle{{ link.templates }} as a simple variable and not like it should be
The text was updated successfully, but these errors were encountered: