Skip to content

[5.8] Add html as a new valid extension for views.#28541

Merged
taylorotwell merged 1 commit into
laravel:5.8from
mathieutu:features/add-html-views
May 15, 2019
Merged

[5.8] Add html as a new valid extension for views.#28541
taylorotwell merged 1 commit into
laravel:5.8from
mathieutu:features/add-html-views

Conversation

@mathieutu
Copy link
Copy Markdown
Contributor

Hi,
As css is a valid extensions for views, I've added html, which allow to directly use html files as view (useful for SPAs), without renaming to *.php, *.blade.php or *.css (actually this works but.. a bit weird to have a compiled html file with a css extension 😅)

Moreover, it avoids to set an plain html file as a "to compile" blade view.

Tests are updated.

Thanks.
Matt'

@taylorotwell taylorotwell merged commit b1119eb into laravel:5.8 May 15, 2019
@amirex128
Copy link
Copy Markdown

Wooow
Thanks mathieutu.
It's a best idea for SPA

@ghost
Copy link
Copy Markdown

ghost commented May 22, 2019

@AminulBD what do you mean for SPA?

@RichardStyles
Copy link
Copy Markdown

@AminulBD what do you mean for SPA?

This is likely for something like Inertia.js or similar where you need to have a chunk of HTML which you inject into the page for a SPA.

Very handy.

@MattWohler
Copy link
Copy Markdown

@phpduck SPA's don't require that your markup be presented in PHP, JS, etc.

@amirex128
Copy link
Copy Markdown

very good

@Mombuyish
Copy link
Copy Markdown

Awesome, that's very helpful

@sensoeurn
Copy link
Copy Markdown

Nice 🥰

@AminulBD
Copy link
Copy Markdown
Contributor

@AminulBD what do you mean for SPA?

@phpduck I'm confused, Mistakenly you mentioned me here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants