Forum

Thread tagged as: Question

Dropping Perch into a ASP.NET project

Hi there,

I'm working on a project in ASP.NET MVC using Razor views (.CSHTML). Is it possible to drop Perch into a project like this, to allow one or two bits of text to be edited?

I'm wondering if there's a way I could drop <?php include('perch/runtime.php');?> and something like <?php perch_content('Ticker');?> into a Razor view? Very light weight stuff.

Thanks,

Martin.

P.S. I don't know whether something like this would be able to done on a Windows server? https://docs.grabaperch.com/docs/adding-perch/file-extensions/

Martin Underhill

Martin Underhill 5 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

I think it's unlikely, but I don't know anything about Razor. You'd need to ask someone who knows about that whether the views could include PHP.

Ok cool. Thanks for the speedy reply :)