Comments (4)
I actually got it working with errors->all()
. Is this how I should be accessing it? Seems a bit non-javascript
from laravel-pug.
Since you're still in PHP technically, I would expect to work with the php operator, like you discovered. But this is gonnna be the purview of https://github.com/pug-php/pug, we are a wrapper for that package.
from laravel-pug.
@weotch Makes sense. Thanks for your help!
from laravel-pug.
Hi @pjhartin We did some quick translate from JS syntax to PHP syntax. It's done by this engine: https://github.com/pug-php/js-phpize
In theory, your code with the dot should work. I tested with the following:
https://pug-demo.herokuapp.com/?embed&theme=xcode&border=silver&options-color=rgba(120,120,120,0.5)&engine=pug-php&input=doctype%20html%0Ahtml(lang%3D%22en%22)%0A%20%20body%0A%20%20%20%20each%20val%20in%20zone.getLocation()%0A%20%20%20%20%20%20p%3Dval%0A&vars=array(%0A%20%20%27zone%27%20%3D%3E%20new%20DateTimeZone(%22Europe%2FPrague%22)%2C%0A)
Each with the dot syntax seems to work in this example. Can you try to update to the last versions with composer update
? (According to https://pug-demo.herokuapp.com/, it seems to work since the version 2.1.1)
from laravel-pug.
Related Issues (20)
- compatibility with livewire HOT 4
- Error installation on laravel 11 HOT 2
- [Lumen 6.0] Unsupported Laravel Version HOT 5
- Another issue with the Exception Class HOT 1
- Doesn't expand blade variable in pug's html element attributes HOT 2
- Provide support for different file extension order HOT 2
- Drop old PHP/Pug/Laravel
- Embed phug/component
- Faild to Extend a pug file inside another File
- Laravel pug for Laravel 7 HOT 3
- Checking null value in pug from db call HOT 6
- Caching HOT 2
- unable to install with composer 2 HOT 7
- PHP 8 support HOT 2
- TestCase not comply with psr-4 autoloading standard HOT 5
- how do you do a blade interpolation within an attribute? HOT 5
- Support for Laravel 9? HOT 1
- Issue implementing Laraform HOT 1
- colon attribute with JS object is being duplicated HOT 2
- iif is not working HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-pug.