Blockly for Visual Studio 2022 + web mvc

121 views
Skip to first unread message

Jose Sebastian Garcia

unread,
Apr 5, 2023, 8:46:56 AM4/5/23
to Blockly
[EN]
Good morning! I write in the forum because I would like to do two things:
+ Raise blockly in a webapp webforms/mvc+razor
+ Create a generator that converts the blocks to single line expressions (excel formulas for example)

I can't find much documentation about it, nor videos that resolve my specific question and if there are, they are outdated.

I would like to hear any suggestions.
Thank you!
Greetings!

[ES]
Buenos días! Escribo en el foro porque quisiera hacer dos cosas:
+ Levantar blockly en una webapp webforms/mvc+razor
+ Crear un generador que convierta los bloques a expresiones de una sola linea (fórmulas de excel por ejemplo)

No encuentro mucha documentación al respecto, tampoco videos que resuelvan mi duda específica y si los hay, los hay desactualizados.

Me gustaría poder oir alguna sugerencia.
Gracias!
Saludos!

Christopher Allen

unread,
Apr 5, 2023, 12:26:55 PM4/5/23
to blo...@googlegroups.com
Hi Jose,

Good morning! I write in the forum because I would like to do two things:
+ Raise blockly in a webapp webforms/mvc+razor

I don't know that any of us on the Blockly have much experience with Razor, but from a quick peek of the documentation it looks like it's just HTML + special template markup, so it should be possible to embed Blockly exactly the same way that one would in a regular HTML document, with the additional option that you could use Razor template syntax to further customise things if you wanted to.
 
+ Create a generator that converts the blocks to single line expressions (excel formulas for example)

There's a codelab on how to create custom generators which would be a good place to start.  Note that Execl formulae are (unlike, say macros or VBScript) expressions rather than lists of statements, so you will want to include in your toolbox only expression blocks (with input and output connections) rather than statement blocks (that have next and previous connections), and you will doubtless want to create additional blocks to represent Excel things like cell references, functions, and so on.


Best wishes,

Christopher

Reply all
Reply to author
Forward
0 new messages