Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create an MVC view engine #4

Closed
sebastienros opened this issue Jun 15, 2017 · 1 comment
Closed

Create an MVC view engine #4

sebastienros opened this issue Jun 15, 2017 · 1 comment

Comments

@sebastienros
Copy link
Owner

@jtkech is already working on it.

Right now the goal is to parse and render dynamically, and then cache the parsed AST.

Ultimately we could compile the AST to C# like Razor is doing to get the most of the performance. This should be pretty simple as there are only a few statements to support in the AST.

@sebastienros
Copy link
Owner Author

Got it working on the mvc branch. Now it's missing layout and section support.

We can create a custom tag {% layout '_Layout' %} or {% extends "_layout" %} (from pug)

Then {% section 'name' %} {% endsection %} to inject some statements in the specific section of the layout.

We can also have a _ViewStart.liquid that would be injected in all views under it, and define the layout there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant