andrewdavey / andrewdavey/cassette

Specifying the order inline scripts are rendered on the page

Đang mở
#430 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
C#
Star
531
Fork
139
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Apologies if there is a way of doing this, I just haven't figured it out. :)

I have a scenario whereby I have a razor layout page and a view with inline scripts in both. However I want the inline script in the view to be rendered above the script in the layout page (both are tracking tags, one needs to appear above the other). I could solve this by specifying a page location but I'd like a more elegant solution - perhaps by specifying a sort order / index in the AddInlineScript tag?

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.