Title: More control over export · Issue #376 · pattern-lab/patternlab-php · GitHub
Open Graph Title: More control over export · Issue #376 · pattern-lab/patternlab-php
X Title: More control over export · Issue #376 · pattern-lab/patternlab-php
Description: (Not sure which repo to put this, @dmolsen & @bmuenzenmeyer, so I'm putting it here for now.) I'm running into something that I think could be handled at a lower level. Whenever I run php core/console --export, a few files that I'm only ...
Open Graph Description: (Not sure which repo to put this, @dmolsen & @bmuenzenmeyer, so I'm putting it here for now.) I'm running into something that I think could be handled at a lower level. Whenever I run php core/cons...
X Description: (Not sure which repo to put this, @dmolsen & @bmuenzenmeyer, so I'm putting it here for now.) I'm running into something that I think could be handled at a lower level. Whenever I run p...
Opengraph URL: https://github.com/pattern-lab/patternlab-php/issues/376
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"More control over export ","articleBody":"(Not sure which repo to put this, @dmolsen & @bmuenzenmeyer, so I'm putting it here for now.)\n\nI'm running into something that I think could be handled at a lower level. Whenever I run `php core/console --export`, a few files that I'm only using with Pattern Lab (such as `pattern-scaffolding.css`) are still referenced in the head of my documented.\n\nI think it would be great if we could wrap these files in a conditional so that when export runs, it switches the conditional off, keeping PL-specific files out of the exported files. For example, `_00-head.mustache` could look something like this:\n\n```\n\u003chtml>\n\u003chead>\n\u003cmeta charset=\"UTF-8\">\n\u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n\u003clink rel=\"stylesheet\" href=\"../../css/styles.css?{{ cacheBuster }}\" media=\"all\" />\n\n{{# patternLabOnly }}\n\n\u003clink rel=\"stylesheet\" href=\"../../css/pattern-scaffolding.css?{{ cacheBuster }}\" media=\"all\" />\n\n\u003cscript src=\"//localhost:35729/livereload.js\">\u003c/script>\n\n\u003c!-- Other stuff I want to include only in PL but not in my exported code -->\n\n{{/ patternLabOnly }}\n\u003c/head>\n\u003c/html>\n```\n\nThe same conditional could also be applied in `_01-foot.mustache`, or better yet, could be applied in any pattern within `source/_patterns`. This would give people flexibility to do what they need to do within the PL shell, but strip everything out when it gets exported for production.\n","author":{"url":"https://github.com/bradfrost","@type":"Person","name":"bradfrost"},"datePublished":"2016-09-28T19:31:30Z","url":"https://github.com/pattern-lab/patternlab-php/issues/376"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:42bc7a31-78f7-c7a7-997e-b302383a0c50 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 923E:BACA4:2066225:2A0DF08:6AFFE1D0 |
| html-safe-nonce | d71a37d39d682998b4cbcab0e1032ce432e2192daa666c6580e37b4ca1e90914 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MjNFOkJBQ0E0OjIwNjYyMjU6MkEwREYwODo2QUZGRTFEMCIsInZpc2l0b3JfaWQiOiI1MTc0NTkyMDM2MTI4NDE2MjA5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 229f004fe73c109d6909fd04ed9c13bdc81b0446c810eadf5855d3e47fefae6d |
| hovercard-subject-tag | issue:179866079 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/pattern-lab/patternlab-php/376/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8190d647ff07c25ffc136ce019668f333da1e628fb7f4d363e99391c30b5525b/pattern-lab/patternlab-php/issues/376 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8190d647ff07c25ffc136ce019668f333da1e628fb7f4d363e99391c30b5525b/pattern-lab/patternlab-php/issues/376 |
| og:image:alt | (Not sure which repo to put this, @dmolsen & @bmuenzenmeyer, so I'm putting it here for now.) I'm running into something that I think could be handled at a lower level. Whenever I run php core/cons... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bradfrost |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0a0d8686a27478df474dd7415776a7a080cde8838b3cd92ea7601187572e5729 |
| turbo-cache-control | no-preview |
| go-import | github.com/pattern-lab/patternlab-php git https://github.com/pattern-lab/patternlab-php.git |
| octolytics-dimension-user_id | 4733935 |
| octolytics-dimension-user_login | pattern-lab |
| octolytics-dimension-repository_id | 10777493 |
| octolytics-dimension-repository_nwo | pattern-lab/patternlab-php |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 10777493 |
| octolytics-dimension-repository_network_root_nwo | pattern-lab/patternlab-php |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 16a11879678aaf97e2a42c33ee70830aa084fa37 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width