Comments (4)
Don't know if you've done anything on this yet, Andrew, but I've made a start here (I haven't pushed to github yet as I have a pending pull request and don't want to mess it up).
So far I've changed the EmbedImages function to take an enum: {DataUri, IE8DataUri, Mhtml} so you can choose to have full embedding or not. Mhtml rendering is next!
from cassette.
I've not started any work on this yet, so I'd be very happy to see a pull request :)
from cassette.
Interesting dilemma: mhtml urls need to be fully qualified absolute paths:
url(mhtml:http://www.phpied.com/files/datasprites/datasprites2.php!aol)
This means we need to know at render time what the url of the css file will be. Now, I can get the local part of the path from the UrlGenerator, but the http://www.example.org
part will need to either be pulled from IIS somehow or entered as a configuration entry somewhere. I'm in favour of adding a property to the StylesheetBundle
that will be the fully qualified domain name used by the MHTML embedding.
Any thoughts?
from cassette.
Yeah, that's a potentially tricky issue. Go with whatever's simplest for now.
I imagine Cassette.Web.Startup will be able to get the domain name from the current HttpContext, but I may need to check this doesn't happen before HttpContext has been assigned.
If you can get your fork working with something basic for now, I can look at the fiddly integration stuff. Thank :)
from cassette.
Related Issues (20)
- Infinite loop between ExceptionCatchingBundleCollectionInitializer and BundleCollection.GetReadLock HOT 3
- Remove legacy classic pipeline web.config transforms HOT 1
- Strange behavior using Web Deploy HOT 1
- Azure + Release = 500 on cassette.axd HOT 10
- Change ID of html template
- cassette rebuild is slow HOT 1
- Sorting assets in HtmlTemplateBundles
- Cassette.RequireJS breaks with most recent version of AjaxMin
- 304 Not Modified HOT 1
- When minifing comma operator syntax, the behaviour of the minified code changes
- Cassette stripping timing units from 0 values making CSS properties invalid HOT 1
- Support "defer" and "async" on scripts
- Support ASP.NET core HOT 3
- Fonts and CSS Animations for Semantic UI not working once bundled HOT 1
- Cassette does not include files in /fonts and /images.
- Cached Manifest.xml being empty breaks website
- CSS minification breaking calc() HOT 1
- setTimeout with lambda causes incorrect minification
- Can Cassette be used in react-native?
- Could not load type 'Cassette.Trace' from assembly 'Cassette, Version=2.4.2.13844, Culture=neutral, PublicKeyToken=null'. HOT 3
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 cassette.