Giter Club home page Giter Club logo

mvcflash's Introduction

abuhakmeh logo

Hi there πŸ‘‹

My name is Khalid Abuhakmeh (@khalidbuhakmeh on Mastodon). These days I'm a developer advocate at JetBrains primarily focusing on .NET technologies using tools like Rider and ReSharper. I also create content for JetBrains at the official blog.

I'm also proud of my personal blog at khalidabuhakmeh.com, where I write mostly about .NET. My posts focus on learning in the open and try to help readers solve problems or grasp ideas. I'm on a tech journey and I hope you come along with me on the ride.

Some of my favorite posts include:

πŸ“™ Blog Posts

Office Hours ⏱

office hours

As a developer advocate, I'm here to help by offering Office Hours. These are anywhere from 30-60 minute sessions where we can discuss tech, problem solving, or general career advice. I've held every position from junior developer to director of software development.

πŸ—ƒ OSS

I also do OSS when the time allows. Some of my most popular NuGet packages include:

That's over 1.2 Million downloads!

I have also contributed logos to multiple .NET ecosystem projects like Marten, DDay.iCal, and Buildalyzer.

Personal 😜

Fun Facts:

  • My wife, Nicole and I love traveling.
  • I'm currently trying to learn Japanese. γŠγ―γ‚ˆγ†γ”γ–γ„γΎγ™γ€‚(Good Morning!).
  • I have two dogs named Samson and Guinness
  • I have KhalidForAmerica.com which points to my blog, and other domains.
  • I enjoy Synthwave music.

If you would like to reach me, the best way is on Mastodon via @khalidabuhakmeh.

Visitor count

mvcflash's People

Contributors

khalidabuhakmeh avatar techplexengineer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

mvcflash's Issues

@Html.Flash - No overload for method 'Flash' takes 1 arguments

I'm trying to use @Html.Flash with my own template instead of the standard Flash. So I'm using @Html.Flash("~/Location/Of/My/Other/Template.cshtml") but I get the CS1501: No overload for method 'Flash' takes 1 arguments error.

But if I look at https://github.com/khalidabuhakmeh/MvcFlash/blob/master/MvcFlash.Core/Extensions/HtmlHelperExtensions.cs#L19 I see you take a templateName parameter. Any idea on this?

I got a bit more information. If I check the HtmlHelperExtensions.cs in the .dll I have this code.

using System;
using System.Runtime.CompilerServices;
using System.Web.Mvc;

namespace MvcFlash.Core.Extensions
{
    public static class HtmlHelperExtensions
    {
        public static T Cast<T>(this object value);
        public static MvcHtmlString Flash<TModel>(this HtmlHelper<TModel> helper);
    }
}

html markup in flash message

I'm trying to do something like this Flash.Error("error message <a href=\"\">link</a>"); but somewhere the html is getting escaped.
So the message that is output is error message <a href="">link</a>

Is there a way around the escaping?

Configuration to Flush when request is an AJAX Request

The ability to keep your Flash code in place, but if the request is detected to be AJAX then they will be cleared at the end of the request.

This will help keep branching logic down since you won't have to worry about whether to flash or not.

Should split MvcFlash into MvcFlash and MvcFlash.Core

If you have a infrastructure project that contains code such as ActionFilterAttributes and want to use MvcFlash for messaging, when you install the package you will get a Content\flash\ folder with associated styles and pngs.

It would make sense for there to be a core package to be installed outside of the mvc web projects.

http://MvcFlash is not a valid url

Is there an associated website or blog to go with this project? If so I'd recommend fixing up the url next to the project description

How do I tell whether there are any flash messages in the @Html.flash

I want to be able to wrap the flash messages into one wrapper, but I want to show/hide that wrapper depending on whether there are any flash messages in the flash object.

I tried to use Flash.Count, but it fails with 'invalid object'

Is there a way to do so?

If Flash.Count then

@Html.Flash

Create easier syntax for string messages

right now you have to do string.format to put dynamic content into your messages. This could be fixed by creating an extension method that hangs off of string.

"this is a cool message for {0}".with(name)

also thinking about named parameters

"this is a cool message for {name}.with(name)

Have to research this more.

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.