Code Monkey home page Code Monkey logo

Comments (4)

thecontrarycat avatar thecontrarycat commented on August 26, 2024

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.

andrewdavey avatar andrewdavey commented on August 26, 2024

I've not started any work on this yet, so I'd be very happy to see a pull request :)

from cassette.

thecontrarycat avatar thecontrarycat commented on August 26, 2024

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.

andrewdavey avatar andrewdavey commented on August 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.