Comments (5)
Sigh, I know. While I was developing Blade UI Kit I spent a lot of time searching for a HTML formatting library for PHP but there's nothing decent out there unfortunately. So I had to "homebrew" my own solution which is indeed not very feasible. I realise this is off putting in writing tests but I've maxed my limits atm at improving it. I'm hoping someone comes along that can help out here or that a decent HTML formatting library gets released at some point.
from blade-ui-kit.
Not sure exactly, but perhaps it would be easier/better for us to just strip white space out completely if possible?
I'd rather not tbh. That would clutter up the tests and make them very unreadable. I really want to dig into a better HTML formatter if possible.
from blade-ui-kit.
Yeah I've had issues in the past finding similar libraries. They are a nightmare... 😅
Not sure exactly, but perhaps it would be easier/better for us to just strip white space out completely if possible?
E.g this;
<div>
<p></p>
</div>
Becomes this;
<div><p></p></div>
And we can assert against that.
I think this would also lead to the tests being more "reliable" since HTML itself doesn't really care about indentation/whitespace, so by removing it I think it would improve the tests by removing that variable from it entirely.😊
This also promotes the tests being more about the component output itself as opposed to worrying about whitespace which I think is a huge plus!
from blade-ui-kit.
@driesvints now that this PR (#154) is merged, I think you can close this issue.
from blade-ui-kit.
Thanks @alexmanase!
from blade-ui-kit.
Related Issues (20)
- Looking for a co-maintainer HOT 9
- Uncaught RangeError: Maximum call stack size exceeded. HOT 6
- many incompatibility with laravel 9 and alpinejs3
- Better error handling for Unsplash component
- Dramatic performance difference between blade component and blade helper HOT 1
- defaultDate property broken before mouseenter is triggered
- How do I run an AlpineJS function when a new x-color-picker color is selected?
- Info: Bootstrap classes for form components
- @ bukStyles does not load any styles - How to troubleshoot? HOT 1
- Problem with conversion to HTML
- app uses buk components instead of resources/view/components
- Carbon formatting not working at all when using local HOT 1
- How do we get the size to work properly? HOT 2
- Conflict with filament 3 styles HOT 15
- TipTap Support
- Laravel default skeleton conflict HOT 2
- Laravel 11 Support HOT 2
- window.Alpine.plugin is not a function HOT 1
- Unable to install Blade UI Kit on Laravel 11 due to dependency conflict with Carbon HOT 1
- Form component missing hidden attribute HOT 11
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 blade-ui-kit.