DotVVM.AMP
0.2.0
See the version list below for details.
dotnet add package DotVVM.AMP --version 0.2.0
NuGet\Install-Package DotVVM.AMP -Version 0.2.0
<PackageReference Include="DotVVM.AMP" Version="0.2.0" />
paket add DotVVM.AMP --version 0.2.0
#r "nuget: DotVVM.AMP, 0.2.0"
// Install DotVVM.AMP as a Cake Addin #addin nuget:?package=DotVVM.AMP&version=0.2.0 // Install DotVVM.AMP as a Cake Tool #tool nuget:?package=DotVVM.AMP&version=0.2.0
DotVVM.AMP
DotVVM.AMP allows easy automatic conversion of certain DotVVM pages to AMP pages. The page must meet several basic criteria to work without any further configurations / modifications:
- No postbacks ale allowed.
- No external JavaScript is present.
- All the CSS code is under 75 kB and does not include any !important directives.
How to use on complex pages
When all those criteria are met, then the only thing left to do is to mark the route as AMP ready and enjoy lighting fast performance. Event if you page does not fit the abovementioned criteria, then you can use DotVVM.AMP. The DotVVM.AMP can be set up to ignore invalid parts and the DotVVM view can be slightly modified to mark the sections of the page which will be included only in the DotVVM page or only in the AMP version.
How to use
Number of steps needed to use transform some of you DotVVM pages into AMP is small and they are easy to follow:
- Add DotVVM.AMP nuget package into your application.
- Modify DotvvmStartup.cs
- Call AddDotvvmAmpSupport on IDotvvmServiceCollection instance. In this method you can configure DotVVM.AMP. You can for example configure how invalid constructs are handled.
- Call AddDotvvmAmp on DotvvmConfiguration instance.
- Modify route table registrations for routes, for which you want to have their AMP version, to use AddWithAmp instead of default Add method.
- Profit
In case that the AMP version does not work as expected, then you can try following steps to get it up and running:
- You can exclude unsupported parts via
<amp:Exclude>
and<amp:Include>
controls. - You can use resource binding instead of value binding when possible.
- You can set handling mode for the type of error you are getting from Throw to LogAndIgnore. With this setting the error would be logged and DotVVM.AMP will try to solve or ignore the problem.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- DotVVM (>= 3.1.0)
- ExCSS (>= 4.1.0)
- Microsoft.Extensions.Logging.Abstractions (>= 3.1.11)
- System.Drawing.Common (>= 4.7.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.2.2 | 710 | 8/17/2021 |
0.2.1 | 411 | 8/3/2021 |
0.2.0 | 416 | 7/8/2021 |
0.1.9.5 | 393 | 7/6/2021 |
0.1.9.2 | 417 | 1/18/2021 |
0.1.9.1 | 504 | 1/7/2021 |
0.1.9 | 515 | 10/3/2020 |
0.1.8 | 581 | 9/26/2020 |
0.1.7 | 599 | 8/13/2020 |
0.1.6 | 527 | 8/13/2020 |
0.1.5 | 511 | 8/12/2020 |
0.1.1 | 580 | 5/23/2020 |
0.1.0.7 | 557 | 5/16/2020 |
0.1.0.6 | 555 | 5/15/2020 |
0.1.0.5 | 522 | 5/15/2020 |
0.1.0.4-pre | 375 | 5/4/2020 |
0.1.0.2-pre | 357 | 4/28/2020 |
0.1.0.1-pre | 369 | 4/28/2020 |
Updated to DotVVM 3.1