Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render markup separately from scripts #96

Open
jpswade opened this issue Nov 15, 2020 · 0 comments
Open

Render markup separately from scripts #96

jpswade opened this issue Nov 15, 2020 · 0 comments

Comments

@jpswade
Copy link

jpswade commented Nov 15, 2020

This is a bit more of a feature request, but it would be ideal if you could render the markup separately from the scripts.

So then you can push your scripts out of the main body of the template to avoid conflict with other vue elements.

Before:

@section('body')
<div class="chart">
    {{$chart->render()}}
</div>
@endsection

After:

@section('body')
<div class="chart">
    {{$chart->markup()}}
</div>
@endsection
@push('scripts')
    {{$chart->script()}}
@endpush
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

No branches or pull requests

1 participant